2004-05-17, 12:55
(madtw @ may 16 2004,00:11 Wrote:i see values like:madtw, mysql stores 'special chars' afaik in utf-8 format. to get the correct string in python you should use
tã©lã©journal
from that value, the mythweb module gets the following:
téléjournal
how do i convert it so that python will output it correctly? i tried using the unicode() function to convert the string but kept getting exceptions that the ordinal is not in range... anyone else figured this out?
unicode (thestring, 'utf-8')