setEncoding(encoding
)
Specify charcter encoding used by your templates. The default is UTF-8.
PHPTAL assumes that encoding of all templates and generated documents is the same. BOM (Byte Order Marker) is removed from UTF-8 documents.
PHPTAL does not read encoding from XML files and never converts character encodings.
Save yourself trouble and always use UTF-8 for everything.