I have a page where I encode the request.params to utf-8 before processing. It works fine. This is behind paster.
But soon after I push out the page to production with nginx in front of paster, I get these encoding errors: GET /ab/get?q=&tag=G%C3%83%C2%B6Do Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: en-us,en;q=0.5 Connection: close Content-Length: 0 Content-Type: User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1b3) Gecko/20090429 Firefox/3.1b3 X-Requested-With: XMLHttpRequest I get these unicode errors: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 116: ordinal not in range(128) Why is the app behaving differently when using nginx and when using paster? This is through a AJAX call I make using YUI library. Should I do something with the data (in JavaScript) before I submit it? Thanks -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
