Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Elizabeth Kellner
On 11 Sep., 14:27, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Text in utf-8 is not unicode, this is bytestring (what we had in 0.96   > in __str__). From __unicode__ you have to return unicode ubjects, not   > utf-8 encoded bytestrings. This is important to know, and that was the root of the pr

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 7:40 AM, Elizabeth Kellner <[EMAIL PROTECTED]>wrote: > > Hi. I have a UnicodeDecodeError error that I can't seem to get rid > of. My model has utf-8 text, which is being returned in the model's > __unicode__ function. However, I can't seem to use the expression > ("%s" %

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-11, o godz. 14:16, przez ekellner: > Coding cookie has nothing to do with bytestring literals decoding, > it's only for unicode literals. If you try to coerce bytestring with > unicode, decoding will be done using default system encoding, if > encoding is not sp

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread ekellner
2008/9/11 Jarek Zgoda <[EMAIL PROTECTED]> > > Coding cookie has nothing to do with bytestring literals decoding, > it's only for unicode literals. If you try to coerce bytestring with > unicode, decoding will be done using default system encoding, if > encoding is not specified explicitly. > Inde

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-11, o godz. 13:40, przez Elizabeth Kellner: > Hi. I have a UnicodeDecodeError error that I can't seem to get rid > of. My model has utf-8 text, which is being returned in the model's > __unicode__ function. However, I can't seem to use the expression > ("%s"

utf-8 text in models with coding: keyword

2008-09-11 Thread Elizabeth Kellner
Hi. I have a UnicodeDecodeError error that I can't seem to get rid of. My model has utf-8 text, which is being returned in the model's __unicode__ function. However, I can't seem to use the expression ("%s" % object) to coerce my utf-8 into a string, without it tring to decode the string as asc