Actually the problem is slightly different from what I originally thought.
I think what's actually happening is that a couple of places in the code it tries to
create a str object from a unicode object. This works fine unless the unicode object has
non
ascii characters.
I think all we need to do is remove these attempts to create a str object from a unicode
object
as it's not needed from what I can tell. So far i've only found one place where it
tries to do this.
Raymond
----- "Kevin Baker" <kbaker(a)redhat.com> wrote:
From: "Kevin Baker" <kbaker(a)redhat.com>
To: "Raymond Mancy" <rmancy(a)redhat.com>
Cc: "Bill Peck" <bpeck(a)redhat.com>
Sent: Monday, May 24, 2010 11:38:49 PM GMT +10:00 Brisbane
Subject: Re: UTF-8 changes branch
Ray,
can you have this discussion on the dev list please.
and who is e(a)redhat.com?
On Mon, May 24, 2010 at 09:36:10AM -0400, Raymond Mancy wrote:
>
http://git.fedorahosted.org/git/?p=beaker.git;a=commit;h=0076b616ada26d81...
>
> In model.py and controllers/py I kind of started to turn the strings
into Unicode objects but then stopped.
>
> I was thinking we could override the __str__() function to do
something like unicode(x).encode('utf-8').
>
>
--
Kevin Baker
Manager Engineering Operations, Westford +1 978 392 2442