Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows'da dosya encoding sorunu #5

Closed
erenhatirnaz opened this issue Jun 11, 2019 · 0 comments

Comments

1 participant
@erenhatirnaz
Copy link
Owner

commented Jun 11, 2019

> Kullanıcı Adın: wormsign
Profil fotoğrafınız indiriliyor... Kaydedildi: ./profil-resmi.jpg
Takipçi listesi indiriliyor... Traceback (most recent call last):
File "teknoseyir_profil_indirici.py", line 568, in
k['kullanici_adi']))
File "C:\Users\( ͡° ͜ʖ ͡°)\AppData\Local\Programs\Python\Python37\lib\encodings\cp1254.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f9d0' in position 6: character maps to

Script, encoding hatası yüzünden dosyaya yazamıyor gözüküyor. with open() olan yerlere encoding='utf-8' parametresini atınca hata düzeldi.

Bildiren: wormsign
Kaynak

@erenhatirnaz erenhatirnaz added the bug label Jun 11, 2019

@erenhatirnaz erenhatirnaz self-assigned this Jun 11, 2019

@erenhatirnaz erenhatirnaz moved this from To do to In progress in teknoseyir-profil-indirici Jun 11, 2019

erenhatirnaz added a commit that referenced this issue Jun 11, 2019

Artık dosyalar utf-8 kodlamasıyla yazdırılacak
Windows sistemlerde hataya sebep olduğu için dosyaların kodlamasını
özel olarak belirtmemiz gerekiyor.

Fixes #5

@erenhatirnaz erenhatirnaz moved this from In progress to Done in teknoseyir-profil-indirici Jun 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.