<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 79: ordinal not in range(128) the form was passed in as an encoded string, but some data or error messages were unicode strings; the form should be passed in as a unicode string
On Sat, Jun 30, 2007 at 11:55:25AM -0300, Walter Cruz wrote: > I'm getting this error:
> <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode > byte 0xc3 in position 79: ordinal not in range(128) the form was > passed in as an encoded string, but some data or error messages were > unicode strings; the form should be passed in as a unicode string
Depends on where that error occurs. Can you post a complete traceback?
> On Sat, Jun 30, 2007 at 11:55:25AM -0300, Walter Cruz wrote: > > I'm getting this error:
> > <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode > > byte 0xc3 in position 79: ordinal not in range(128) the form was > > passed in as an encoded string, but some data or error messages were > > unicode strings; the form should be passed in as a unicode string
> Depends on where that error occurs. Can you post a complete traceback?
On Sun, Jul 01, 2007 at 11:27:38AM -0300, Walter Cruz wrote: > Well, I asked before search the in the list archives!
Sorry, no. If you like to continue the topic you brought up with another thread then please use the other thread. I didn't follow the other thread. If you start a new thread then I recommend you put all necessary information into it.
> How can I configure this to avoid to say that this is string is unicode?
You can't. A string contains 7-bit character in Python. So if you use anything besides 7-bit ASCII you need to use unicode objects. Generally (not only with Pylons) it's wise to always use Unicode internally and just convert them on input/output. Trust me - it will save you time and hassle.