Max Ischenko wrote:
> Michele,
>
> > It's great to have you watching unicode related things as I'm not
> > experienced on this camp, thanks for the test, as I said there is not
> > problem, I'm going to put to_unicode back into the game! ;-)
>
> I'm all for removing monkeypatching code.
>
> In this specific case, leaving to_unicode as is probably the way to go until
> a better solution found.
>
Yes, indeed. ;-)
> Besides, how about raising an exception instead of ignoring it (line 39):
>
> try:
> encoding = config.get('kid.encoding', 'utf8')
> value = unicode(value, encoding)
> except UnicodeDecodeError:
> raise ValueError("Non-unicode string: %r" % value)
Seems good and I've seen you've already done that. ;-)
Ciao
Michele
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---