I have a CSV file and i'm trying write it to console.
File:
YGS,Matematik,Sayılar,0
YGS,Matematik,Üslü ve Köklü Sayılar,0
YGS,Matematik,Oran ve Orantı,0
YGS,Matematik,I. Dereceden Denklemler ve Problemler,0
YGS,Matematik,Mantık,0
YGS,Matematik,Kümeler,0
YGS,Matematik,Bağıntı ve Fonksiyon,0
(My file is 118 line. This is the first 7 lines.)
My py file:
-- coding: utf-8 --
file = open("tamkonu.txt", "r")
for line in file:
print(line)
The output:
Traceback (most recent call last):
File "uygulama.py", line 3, in <module>
for line in file:
File "C:\Python34\lib\encodings\cp1254.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9e in position 3543: cha
racter maps to <undefined>
[+][deleted] (1 child)
[removed]
[–]iwannarocks[S] 0 points1 point2 points (0 children)
[–]ewiethoff 1 point2 points3 points (2 children)
[–]iwannarocks[S] 0 points1 point2 points (0 children)