Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1216

UnicodeDecoder Error charmap decoder can't decode Serbian latin alphabet letters like č, ć, ž, š, đ?

$
0
0

I have a csv file that is read by a python script and it throws an error whenever there are Serbian latin alphabet letters in the file. The decoder decodes these letters into nothing.Is there a way to somehow give instructions into what it needs to be decoded or change it somehow without going through all of the strings in the file.

This is the error:UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1567: character maps to <undefined>

The only way i see it could be done is by replacing all of the characters into English latin equivalent letters but that is very time consuming.


Viewing all articles
Browse latest Browse all 1216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>