lkcl luke <[email protected]> wrote (14.02.2012): > On Tue, Feb 14, 2012 at 10:08 PM, Rene Maurer <[email protected]> > wrote: >> lkcl luke <[email protected]> wrote (14.02.2012): >> >>> hmm.... how many other people would be affected by this? >>> >>> it sounds like the sort of thing that would fix some of the issues >>> encountered by other people. >> >> I have an unicode issue but it has *nothing* to with CherryPy. >> >> When i do in my application: >> >> # -*- coding:utf-8 -*- >> from pyjamas.ui.HTML import HTML >> text = "öäüéàè" >> h = HTML(text) >> >> text will be displayed correct with pyjamas desktop. But not correct >> when serving the app with CherryPy or Apache or when i direct open >> the html file with a browser (fox or chromium). >> >> the same behaviour here when i modify Info.py from the kitchensink >> example (i.e. adding öäüéàè to the HTML element).... >> >> Any hints for this? > > hmmm... can you open a bugreport, then do this:
I will do it today. > * edit two files one with coding in it and one not > * put just x = "öäüéàè" in it > * run pyjscompile foo.py (whatever) > * run "diff" on the two files. > > see what happens. $ echo "# -*- coding:utf-8 -*-" > foo.py $ echo "x=\"öäüéàè\"" >> foo.py $ ../../../pyjamas/bin/pyjscompile foo.py > foo1.js $ echo "x=\"öäüéàè\"" > foo.py $ ../../../pyjamas/bin/pyjscompile foo.py > foo2.js $ diff foo1.js foo2.js $ $ md5sum foo1.js fcee627cd1df113fd00be1454a4ee8af foo1.js $ md5sum foo2.js fcee627cd1df113fd00be1454a4ee8af foo2.js René

