utf8 silly question

Catalin Constantin catalin at bounce-software.com
Tue Jun 21 12:16:07 EDT 2005


i have the following code:

c=chr(169)+" some text"

how can i utf8 encode the variable above ?
something like in php utf8_encode($var);?!

chr(169) is the &copy (c) sign !

10x for your help !

p.s.: i tryed using codecs, etc but always get an error message
like: 'ascii' codec can't decode byte 0xa9 in position 0...


-- 
Catalin Constantin
Bounce Software
http://www.bounce-software.com
http://www.cabanova.ro




More information about the Python-list mailing list