This is absolutely driving me nuts.
Leo can handle unicode properly, but Python's own print statement
can't.
I've set PYTHONIOENCODING=utf-8
I have refrained from setting sys.setdefaultencoding('utf-8') in
sitecustomize.py.
Leo writes the following properly to an external file:
@first # -*- coding: utf-8 -*-
s1 = 'line Ä, 궯, 奠 end'
s2 = 'line Ä, 궯, end'
print(type(s1),s1)
But the print statement yields byte hash, on both Python2 and Python3.
This kind of thing is causing chaos in unit tests.
What am I missing??????
Somebody please help!
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.