Hi;

All templates are instantiated with
ENCODING => 'utf8'

Templates do not have BOM's defined because this is error prone with
as many templates as we are talking about.  Consequently we have
chosen not to rely on semantically meaningless, optional parts of the
UTF-8 spec and decided to go with specified encoding instead.

I am seeing strange cases where UTF-8 is working in some cases, but
not others--- often in the same file.  I am unable to determine
exactly what is causing the failure t this time.  I don't know at this
point whether it is strictly a TT issue, or whether it is more
complicated.

For example, suppose I submit the following value in a form: ΕταιρίαA

* I can process it and write it not going through TT with no problems.
* I can save it to PostgreSQL, retrieve it, and display it in TT with
no problems
* I can pull it from PostgreSQL, feed it into a block that generates
an input statement with no problems.
* However, if I feed what was submitted by the user agent into the
block that generates an input statement it comes out as garbage
(ΕταιρίαA).

I have a few other cases where UTF8 is not working but I suspect if I
can figure out what is wrong in this case, the rest can be figured out
quickly.

Best Wishes,
Chris Travers

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to