On Fri, Feb 10, 2006 at 01:32:40AM +0100, BJ?rn Lindqvist wrote: > > I think that Kid's way to deal with encodings is slightly > non-optimal.. It could be improved by having Kid default to utf8 > instead of ascii. It is likely that that brings other problems, but it > is still better than guessing ascii which in a web context is a > totally brain damaged guess. I'm sure there are alot of web apps out > there waiting to be broken because the programmer didn't realise that > his code only works with ascii characters. > > My other idea is that Kid would refuse to run unless an encoding is > explicitly specified somewhere. "In the face of ambiguity, refuse the > temptation to guess." I hope you can please fix this problem somehow. > Please CC me replies as I don't subscribe. >
I believe Kid tries to use the encoding that *you* have set. There may be a case in there somewhere that has a bad default, but I was not able to find it during a few quick greps. See the documentation for 'sys.getdefaultencoding()'. My suggestion to most people is to just use unicode objects. David -- http://www.traceback.org GPG keyID #6272EDAF on http://pgp.mit.edu Key fingerprint = 8BAA 7E11 8856 E148 6833 655A 92E2 3E00 6272 EDAF
pgpmirIKWRUYB.pgp
Description: PGP signature
