"Italo Maia" <[EMAIL PROTECTED]> writes:

> 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.

Hmmm...  Did you notice that you're declaring the template to use ISO-8859-1
encoding and that you're asking Kid to gerenate UTF-8 output?  This is
something weird, since you could use ISO-8859-1 for everything if your
templates are always using that encoding.

> <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" />

Here you're saying that you'll have UTF-8 again.  I don't recommend mixing
encodings this way, it might cause surprising results.

> Ow, one more thing, set the kid.outputformat to xhtml, like this:
>
> kid.outputformat="xhtml"
>
> so, things will "be" better ^^

No, they won't unless you've configured everything as XHTML and your web
server is delivering the content with the correct content type.  Otherwise
you'll have XHTML treated as HTML tag soup and you might get some weird things
again. 

Please read the following articles / discussions:
  - http://hixie.ch/advocacy/xhtml
  - http://www.webmasterworld.com/forum21/12026.htm
  - http://www.w3schools.com/xhtml/xhtml_howto.asp

You'll be much better using html-strict or even html-transitional if you're
not using some XHTML new stuff (such as ruby annotations or using things like
SVG, MathML, RDF, etc.).

> ps: Don't use the shell to INSERT stuff like "�" and "�" in the
> database. I usually get some weird problems with it. Use catwalk ; )

This might be because your system is configured with one encoding and you're
trying to save with other.  I always use the shell even with accented
characters and there's no problem at all with that.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to