On Wed, Jun 17, 2009 at 9:38 AM, Ville M. Vainio <[email protected]> wrote:
>
> Culprit is this:
>
> 6867 def toUnicode (self,s,encoding='utf-8',reportErrors=True):
> 6868
> 6869 try:
> 6870 return unicode(s)
> 6871 except Exception:
> 6872 -> return ''
Thanks for your help.
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')
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
-~----------~----~----~----~------~----~------~--~---