On Apr 27, 2006, at 7:09 PM, Kevin Dangoor wrote:

>
> On 4/27/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>> test_unicode=# select * from test_unicode_table;
>>  id | test_column
>> ----+-------------
>>   1 | áéíóú
>>   2 | áéíóú
>>   3 | áéíóú
>>   4 | áéíóú
>>   5 | áéíóú
>>   6 | áéíóú
>> (6 registros)
>
> 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

-bob


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

Reply via email to