Rik Sançez
80+ Bronze
- Katılım
- 14 Temmuz 2021
- Mesajlar
- 1,171
- Reaksiyon skoru
- 614
Arkadaşlar bilen varsa hatanın neden olduğunu yazabilir mi?
bende baktımda kaynağını bulamadım.Utf8 ile kodlamayı deneyebilirmisin? Şimdi baktım ascii hatası veriyor. Googledan baktım![]()
yani ben i yarine ı mı yazmalıyım?Şöyle; https://stackoverflow.com/questions...scii-character-xc3-in-file-sentiment-analysis
Add the following to the top of your file # coding=utf-8
If you go to the link in the error you can seen the reason why:
Defining the Encoding
Python will default to ASCII as standard encoding if no other encoding hints are given. To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file, such as: # coding=
Mesajlar otomatik olarak birleştirildi:
Print ile yazdırmaya çalıştığın cümlede küçük ı olduğu için olabilir. O yüzden utf8le denediğinde düzelirse haber et. Eğer sorun bu değilse eminim saçma sapan bişeyden hata veriyordur.
tamam oldu çok teşekkürler çalıştı şimdiutf-8 ile alakası yok değişkenleri türkçe karakterler ile belirtemezsin ı,ü,ğ,ş,ö v.b harfler kullanma.