Re: UnicodeEncodeError in template rendering

2007-08-24 Thread Michael Radziej
Hi, On Sun, Aug 19, Malcolm Tredinnick wrote: > > On Sun, 2007-08-19 at 00:27 -0700, cesco wrote: > > File "C:\Python25\lib\site-packages\django\template\__init__.py" in > > render > > 739. return ''.join([force_unicode(b) for b in bits]) ^^^ Malcolm: shouldn't this be u''.j

Re: UnicodeEncodeError in template rendering

2007-08-19 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 08:19 +, cesco wrote: > Thanks a lot Malcolm, I think we are getting there:-) > > > So, have a look at the debug screen and click on the "local variables" > > link just below this last line in the extended traceback. What is "s" > > here (in particular, it would be good

Re: UnicodeEncodeError in template rendering

2007-08-19 Thread cesco
Thanks a lot Malcolm, I think we are getting there:-) > So, have a look at the debug screen and click on the "local variables" > link just below this last line in the extended traceback. What is "s" > here (in particular, it would be good know what type(s) is)? Also, what > is the value of 'encod

Re: UnicodeEncodeError in template rendering

2007-08-19 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 00:27 -0700, cesco wrote: > Thanks for your replies. > > Just to avoid any doubt, I'm using __unicode__ instead of __str__ and > I'm using the latest development version of django (post unicode > merge). > > > What is most important to know is (a) what is the data that it i

Re: UnicodeEncodeError in template rendering

2007-08-19 Thread cesco
Thanks for your replies. Just to avoid any doubt, I'm using __unicode__ instead of __str__ and I'm using the latest development version of django (post unicode merge). > What is most important to know is (a) what is the data that it is > trying to render (both type and content). It's trying to