The Python Oracle

Saving UTF-8 texts with json.dumps as UTF-8, not as a \u escape sequence

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: Industries in Orbit Looping

--

Chapters
00:00 Question
00:48 Accepted answer (Score 1144)
02:34 Answer 2 (Score 138)
02:53 Answer 3 (Score 31)
03:14 Answer 4 (Score 30)
03:58 Thank you

--

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

Question links:
[REPL]: https://en.wikipedia.org/wiki/Read-eval-...

Accepted answer links:
[io.open()]: https://docs.python.org/2/library/io.htm...
[bug in the ]: http://bugs.python.org/issue13769

Answer 4 links:
[Pieters' Python 2 workaround]: https://stackoverflow.com/questions/1833...

--

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

--

Tags
#python #json #unicode #utf8 #escaping

#avk47