[Tutor] (no subject)
Jorge Louis de Castro
jobauk at hotmail.com
Thu Aug 25 18:43:44 CEST 2005
Hi,
What is the best way to split a unicode string in its characters?
Specifically, having this unicode chinese string
u'\u8C01\u4ECA\u5929\u7A7F\u4EC0\u4E48
I want to either split all its characters:
[\u8C01,\u4ECA,\u5929,\u7A7F,\u4EC0,\u4E48]
or insert a space between each character:
\u8C01 \u4ECA \u5929 \u7A7F \u4EC0 \u4E48
Its not as easy as it looks, though.
chrs
j.
More information about the Tutor
mailing list