One more update: I just verified that in master.kid the following line
is in place:

<meta content="text/html; charset=UTF-8" http-equiv="content-type"
py:replace="''"/>

and from the interperter (a little easier to comprehend and match up
with the html output than what was in post #2):

kid.Template(source='<div>&nbsp;</div>').serialize(encoding='utf-8',output='html')
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>\n<DIV>\xc2\xa0</DIV>'

so far, nothing new, but when I change the encoding in kid to
iso-8859-1, I believe I get the output I'm expecting from the
interpreter, which tells me that kid must need to using the iso-8859-1
encoding?

>>> kid.Template(source='<div>&nbsp;</div>').serialize(encoding='iso-8859-1',output='html')
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>\n<DIV>\xa0</DIV>'


So I changed the app.cfg to have kid.encoding="iso-8859-1" and the meta
tag in master.kid to be

<meta content="text/html; charset=iso-8859-1" http-equiv="content-type"
py:replace="''"/>

but still no dice. Same html output from my turbogears app, even though
my output from the interpreter was actually different (what I
expected). I feel like I'm getting closer, but still not there.

When I specify the kid.encoding, is it being respected? What else could
lead to the rendered html output not coming out right?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to