On Wed, Jun 17, 2009 at 5:54 PM, 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')

It works. I committed and pushed.

This is still fundamentally a "wrong thing to do", so I emit a g.trace
warning as well.

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