On Wed, Jun 17, 2009 at 9:53 AM, Edward K. Ream <[email protected]> wrote:

>
> Doesn't this have to fail if the default encoding is ascii?  What happens
> if you replace with:
>
>     try:
>         return unicode(s,'utf-8')
>     except Exception:
>         return unicode(s,'utf-8',errors='replace')
>

Actually, the above is pretty similar to:

    return g.toUnicode(s,'utf-8')

EKR

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

Reply via email to