Re: RELEASED: Quixote-2.1, and updates of other packages.

Neil Schemenauer <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.