Re: Phone encodings (revisited)

"Roger Binns" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <024d01c655bb$ad32f100$07000100@rogersqyvr14d3>
> As a partial fix for the encoding problem can we do the following?

It isn't a fix - it a sweeping under the rug.

>            sys.setdefaultencoding(encoding)

That affects all threads including the main gui one.  The best thing
to do is to fix this properly.

Go and fix one model writing the code needed to get it right.
(Remember things like the phone filesystem may be in a different 
encoding or may not support non-ascii chars).  Rinse and repeat
on a seperate and totally unrelated model.  Do for a 3rd model.
Don't forget the pelephone model.

At this point you'll have an idea as to how to abstract this 
out and provide common code for each model to use.

Roger


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.