it was actually trickier to fix that than i’d thought it would be. the template for the atom feeds had the encoding specified correctly but simpleTAL was replacing it. i figured that that was because the python code did:
so i changed it to “utf-8” there and that made it not include any encoding. same with other values. so it looks like simpleTAL will only give you the wrong encoding or none at all. i had to work around it by manually fixing the encoding in the rendered template with a regexp. ugh.
anders pearson - 2005-11-09 22:53:20
thanks, Sam.
it was actually trickier to fix that than i’d thought it would be. the template for the atom feeds had the encoding specified correctly but simpleTAL was replacing it. i figured that that was because the python code did:
template.expand(context,fakeout,outputEncoding=“utf8”)
so i changed it to “utf-8” there and that made it not include any encoding. same with other values. so it looks like simpleTAL will only give you the wrong encoding or none at all. i had to work around it by manually fixing the encoding in the rendered template with a regexp. ugh.