Wow! With this i can help :D. Well, i had the same problem some time
so, i got my hints.
Here's how i do:
I give no special parameters to my database(sqlite for now), i just do
the following:
Set the kid.encoding parameter to "utf-8" like this in the app.cfg:
kid.encoding="utf-8"
At the very first line in each kid page, i write this:
<?xml version="1.0" encoding="ISO-8859-1"?>
So, no encoding problems with my pages. Stuff like "�" and "�" go
smoothly.
And the head of my master templates are basicly like this:
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'"
py:attrs="item.items()">
<meta content="application/xhtml+xml; charset=utf-8"
http-equiv="content-type" />
<script type="text/javascript" src="/static/javascript/js.js" />
<title py:replace="''">Your title goes here</title>
<meta py:replace="item[:]"/>
</head>
Ow, one more thing, set the kid.outputformat to xhtml, like this:
kid.outputformat="xhtml"
so, things will "be" better ^^
ps: Don't use the shell to INSERT stuff like "�" and "�" in the
database. I usually get some weird problems with it. Use catwalk ; )
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---