The Python Oracle

Changing default encoding of Python?

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

--

Track title: CC F Haydns String Quartet No 53 in D

--

Chapters
00:00 Question
00:38 Accepted answer (Score 175)
01:30 Answer 2 (Score 94)
02:02 Answer 3 (Score 53)
03:12 Answer 4 (Score 18)
03:57 Thank you

--

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

Question links:
[Python]: http://en.wikipedia.org/wiki/Python_%28p...
[Eclipse]: http://en.wikipedia.org/wiki/Eclipse_%28...
[PyDev]: http://en.wikipedia.org/wiki/PyDev
[UTF-8]: http://en.wikipedia.org/wiki/UTF-8

Accepted answer links:
[can break code that relies on ASCII being the default]: https://anonbadger.wordpress.com/2015/06.../

Answer 3 links:
[reload(sys).setdefaultencoding]: https://stackoverflow.com/questions/2276...

Answer 4 links:
[PyDev]: http://en.wikipedia.org/wiki/PyDev
[this ticket]: https://sw-brainwy.rhcloud.com/tracker/P...
[an original blog post for this workaround]: http://opensourcehacker.com/2010/01/24/a.../

--

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

--

Tags
#python #encoding #utf8 #console

#avk47