Hi

(probably) NOT pyjamas fault, but i need advice on what level to attack
this problem.

I just noticed yesterday that if i use swedish characters in my webapp, the
following things happen:

*app creates save data properly(?) in json format (i can see the swedish
characters in there)
*app wont read the above json project data correctly (doesnt decode it
properly?)
*cherrypy backend gives me ascii codec errors when trying to write it to
file

So, after reading up on unicode/utf-8 i ask at what level do I treat this?

Are textboxes unicode?
does the TextArea.getText() return unicode?
should i encode to utf-8 everytime i read a textarea or should I only do
that at the time of creating my (json) save data?

does the json encoder/decoder in pyjamas support unicode?

I realise im probably not presenting this problem clearly, let me know if
something needs explaining!

G
-- 
■ ■ ■ ■ ■ ■ ■ ■ ■ ■

Reply via email to