Gustavo Sverzut Barbieri wrote: > --- Dirk Meyer <[EMAIL PROTECTED]> escreveu: >> Gustavo Sverzut Barbieri wrote: >> > Yes, they're... If you check the cvs logs you see my changes are >> very >> > punctual, but I spent a lot of time making it work... and >> discovering >> > where it breakes... as you mentioned below, it generally breaks >> when >> > doing str(), cause python uses ASCII as default encoding. One >> possible >> > solution is to keep it unicode as far as possible and when we need >> to >> > make it a string, we should use some testings, like: >> > >> > if type( possible_string ) == unicode: >> > s = possible_string.encode( "utf-8" ) >> >> We should check were we need it and wrap this functions. We only need >> it when outputing from Freevo and our outputs are 1. the _debug_ >> function, 2. some stuff in osd.py and 3. calling Python functions, >> most of all the os-calls. Right now it seems to break here and there. > > Yes. > I code a util/unicode.py with str2unicode and unicode2str, that uses > config.encoding, so you don't have to pass it everytime.
STOP: I've done it some minutes ago. Dischi -- There can't be a crisis today, my schedule is already full. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
