On Sun, Aug 21, 2005 at 04:21:20PM +0200, Damjan wrote: > > It still has this stupid function in http_response.py > > The problem with the _encode_chunk function is that this simple example > (script atached) doesn't work when a non-ascii characters are entered in > the form. > ie it raises the "UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in > position 297: ordinal not in range(128)" exception. > And I don't see what my application could do to correct this behaviour. Your application must set the charset of the HTTPRequest object to match the charset of the data being submitted by the form. Quixote is designed so that if you are using some charset other than iso-8859-1 then you need to use unicode strings to contain non-ASCII characters. Neil