Re: unicode and __repr__()

2007-04-19 Thread Martin v. Löwis
Martin Drautzburg schrieb: I am using UTF-8 and assembling the string expression manually works okay and the umlaute appear correctly in the browser (so I could probably write my own serializer and it would work). That's what you should do. Or you can use one that people have already written,

unicode and __repr__()

2007-04-18 Thread Martin Drautzburg
I am using repr() to pass arrays, dicts and combinations therof to javascript as it already returns a valid javascript expression (a string) right away. But for some reason it does not handle Umlaute correctly and those characters finally appear as two strange characters on the browser. I am using