4 ms·
Well... That, or you just use Python 3, which already supports UTF-8 as default encoding for strings...
by kalenx 11y ago
Well... That, or you just use Python 3, which already supports UTF-8 as default encoding for strings...
- zokier 11y agoI'm pretty sure that is not true. I don't think that py3k strings even have a default encoding per se.
- maxerickson 11y agoText mode file IO defaults to a platform specific encoding: https://docs.python.org/3/library/functions.html#open https://docs.python.org/3/library/functions.html#open (which will probably be UTF-8 on recent systems that are not Windows)