The Python Oracle

Unicode (UTF-8) reading and writing to files in Python

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Intrigue Looping

--

Chapters
00:00 Question
01:49 Accepted answer (Score 119)
04:15 Answer 2 (Score 856)
05:13 Answer 3 (Score 76)
06:28 Answer 4 (Score 18)
06:45 Thank you

--

Full question
https://stackoverflow.com/questions/4919...

Answer 1 links:
[io]: https://docs.python.org/3/library/io.htm...
[open]: http://docs.python.org/library/codecs.ht...
[can cause problems when mixing ]: https://stackoverflow.com/a/46438434/101...

Answer 2 links:
https://docs.python.org/3/library/functi...
[locale.getpreferredencoding()]: https://docs.python.org/3/library/locale...
[text encoding]: https://docs.python.org/3/glossary.html#...
[codecs]: https://docs.python.org/3/library/codecs...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #unicode #utf8 #io

#avk47