I have a text file with utf-8 encoding. I want to change it's unicode to ANSI or unicode automatically in python. Is it possible? How can i do it?
-
2possible duplicate of stackoverflow.com/questions/4299675/…Binyamin Even– Binyamin Even2016-12-25 09:54:14 +00:00Commented Dec 25, 2016 at 9:54
-
A precision: unicode is a characters set; utf8 is a codec (an algorithm) used to encode Unicode characters.Laurent LAPORTE– Laurent LAPORTE2016-12-25 09:54:24 +00:00Commented Dec 25, 2016 at 9:54
-
@LaurentLAPORTE, but when in windows we want to save as a text file, in encoding options we can see both utf-8 and unicodes.!?narges– narges2016-12-25 10:08:08 +00:00Commented Dec 25, 2016 at 10:08
-
See stackoverflow.com/a/701920/1513933 for a clear description of what is ANSI charset.Laurent LAPORTE– Laurent LAPORTE2016-12-25 10:45:21 +00:00Commented Dec 25, 2016 at 10:45
-
See stackoverflow.com/a/15128103/1513933 to have a clear description of what is Unicode charset.Laurent LAPORTE– Laurent LAPORTE2016-12-25 10:45:42 +00:00Commented Dec 25, 2016 at 10:45
Add a comment
|