Just came across this, py 2 to 3 utilities, possibly germane. http://pypi.python.org/pypi/six/
On Tue, Nov 8, 2011 at 5:19 PM, Edward K. Ream <edream...@gmail.com> wrote: > 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 leo-editor@googlegroups.com. > To unsubscribe from this group, send email to > leo-editor+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/leo-editor?hl=en. > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.