I got the answer. What I need was so simple but I was blinded at that
moment.
Thanks for any suggestion!
f = open("test.csv", rb)
t1 = f.readline()
>>> t2 = t1.decode("iso-8859-9") # test with turkish
>>> t2
u'Dur-kalk trafi\u011fi, t\u0131kan\u0131kl\u0131k tehlikesi\n'
>>> print t2
Du
the size of the string in
> bytes if I have the unicode string but just the length. (it only works
> fine for ascii/latin1) In data structure, I have to store unicode
> string for many languages and must know exactly how big of my string
> which is stored so I can read back later.
&g
string for many languages and must know exactly how big of my string
which is stored so I can read back later.
Many thanks for any suggestion.
cheers!
pattreeya.
--
http://mail.python.org/mailman/listinfo/python-list