Resolved: Jython 2.1 and Cheetah:Cyrillic templates output mixed encoding

Mike Grigorov mikesg at abv.bg
Mon Mar 29 08:42:14 EST 2004


mikesg at abv.bg (Mike Grigorov) wrote in message news:<9d3e1c94.0403252354.2fba4541 at posting.google.com>...
> I am using cheetah with jython 2.1 and I have problem generating templates
> that contain cyrillic text. Some texts are printed OK and others are not. 

The fact is that cheetah had nothing to do with the problem. I studied Jython 
code and changed PyString and PyFile classes in the org.python.core package. I 
changed all calls to deprecated methods of java.lang.String with their 
recommended replacements and the problem seems to be solved. I also changed 
references to StringBufferInputStream with ByteArrayInputStream in the "Py" and 
"parser" classes of the same package but haven't studied if this helped to solve 
the problem.


Thanks for your time
Mike



More information about the Python-list mailing list