Segment fail for latin1 characters
Open Document Templating System for PHP
Brought to you by:
cyruss666,
doctorrock
Assigning variables on Segment objects fails on (non ASCII) ISO 8859 characters.
Bug can be solved switching 2 lines in Segment::setVars() function:
$value = ($charset == 'ISO-8859') ? utf8_encode($value) : $value;
$value = $encode ? htmlspecialchars($value) : $value;
Thanks for this project!