Martin Karlsson / prog.re

I hope at least googlebot reads this blog


UnicodeEncodeError: 'ascii' codec can't encode characters

This is how you know that you have some version of python 3 installed. Now, to be able to actually do something with Python3 you will also need this:

$> export PYTHONIOENCODING=utf8

Now python knows how to output characters (other than ascii) to your terminal (it knew this in python2 but it forgot).


Get in touch: martin [at] prog.re