Re: python 2.6 ascii codec error

kevin <[email protected]> Sun, 22 Nov 2009 22:15:15 -0800
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
On Sun, Nov 22, 2009 at 10:00 PM, <[email protected]> wrote:

>  On Fri, 20 Nov 2009, kevin wrote:
> > i am trying to move to python 2.6 and latest cheetah 2.4. i am getting
> > this error with python 2.6 and cheetah 2.4.
> > the same template was working well with python 2.5 and cheetah 2.0.1.
> > thanks for the help
>
> Apologies for the late reply.

thanks for taking the time to reply.

Looks like you're using Web.py and I would double check that something else
> isn't mucking with the encoding of the str object prior to passing it along
> to
> your cheetah wrapper.
>
> this is the cheetah rendering part from web.py that i use.
http://pastie.org/710831

i tried removing the filter part from render method, but i still get the
same error. that seemed to be the only part that does some sort of encoding
stuff.

is there something else that i can change/ try there to fix this problem?
can you please take a look into the pastie.


Additionally, are you using #encoding or #unicode at all in your strings?
>
> no, i am not using any #encoding or #unicode at all in the html templates.

Any more details you can provide would be helpful.
>
> this works cheetah 2.0.1 and  python 2.6. please let me know if you would
like me to give more details.
thanks a lot!

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss