2007/5/9, Gregor Horvath <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] schrieb:
> > I have a kid template which goes more or less like this
> >
> > <body>
> >   <div>
> >     ${document(path_to_file)}
> >   </div>
> > </body>
> >
> > where 'path_to_file' is, well, the absolute path to a file with a HTML
> > table in it. The problem is that sometimes the file contains latin1
> > characters and in such cases TG fails with this error message
>
> http://kid-templating.org/language.html#xml-function
a not-so-useful RTFM-style reply.

Actually, the 'document' function has an optional argument 'encoding',
which can be used to specify the text encoding of the file passed --in
my case, "document(path_to_file, encoding='latin1')". However, this
argument was not being used in kid 0.9.3. In kid 0.9.5 the problem is
solved, so I upgraded and my problem dissapeared.

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