Menu

#14 Segment fail for latin1 characters

v1.0 (example)
open
nobody
encodings (1)
5
2014-06-04
2014-06-04
No

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!

Discussion


Log in to post a comment.