I have the following:
blocky = u'\u2588'
print blocky
When I run it in the command line everything is fine:
# python foo.py
█
Then I run pyinstaller foo.py
. No errors. When I run the executable I get this error:
# ./foo
Traceback (most recent call last):
File "testall.py", line 2, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2588' in position 0: ordinal not in range(128)
[8029] Failed to execute script testall
I've read the python unicode how-to and am still totally confused.
Edit: Just to clarify, I am especially confused about why it works before compiling but not after