Em Quinta 27 Abril 2006 23:26, Bob Ippolito escreveu:
> On Apr 27, 2006, at 7:09 PM, Kevin Dangoor wrote:
> > Do those characters require more than 1 byte for UTF-8 encoding?
>
> Yeah...
>
> >>> len(unicodedata.normalize('NFC', u'\xe1\xe9\xed\xf3\xfa').encode
>
> ('utf-8'))
> 10
>
> >>> len(unicodedata.normalize('NFD', u'\xe1\xe9\xed\xf3\xfa').encode
>
> ('utf-8'))
> 15
Thanks Bob!
I was testing and trying to solve some problems with the new decorator syntax
and haven't seen this before.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---