On Fri, Feb 20, 2009 at 7:28 PM, Vicent <uve...@gmail.com> wrote:

> Have you had a look to the (invalid) bug http://launchpad.net/bugs/323105
> ? Setting the
> sys.defaultencoding() to 'utf-8' fixed the problem for me in rev 1447
> and I have had no issues
> (IIRC) with unicode since then.

sys.setdefaultencoding is a hack that they suggest avoiding on all
occasions. Not encoding/decoding anything ever (apart from when you
are serializing to a file) is the right approach. Qt controls use
unicode natively (QString), and leo stores the text as unicode in its
model. Any encoding/decoding happening in between should be considered
a bug.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to