3 ms·
Set the environmental variable LC_CTYPE to something like "en_US.utf-8" for utf-8 output. I don't know where it's documented; I just found it on some guy's blo
by tsuraan 18y ago
Set the environmental variable LC_CTYPE to something like "en_US.utf-8" for utf-8 output. I don't know where it's documented; I just found it on some guy's blog a while ago. This also apparently doesn't work if python's stdin isn't a console (i.e. it's a pipe), but for interactive sessions it's good enough.