You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is,
Japanese language uses UTF-8 encoding,
and FuelPHP's Security::htmlentities automatically sets encoding to UTF-8
(If FuelPHP is configured to use UTF-8, Security::htmlentities uses UTF-8).
The text was updated successfully, but these errors were encountered:
Sorry about the delay. We are not sure we understood your issue; do you have any bug / warning / encoding error ?
The thing is that htmlentites does much more than htmlspecialchars. We didn't succeed to reproduce any issue using htmlspecialchars and japanese characters, but since it is documented that this function use ISO-8859-1 encoding for php < 5.4.0 (http://www.php.net/manual/en/function.htmlspecialchars.php), we just implemented our own \Security::htmlspecialchars function:
I propose to use FuelPHP's Security::htmlentities instead of htmlspecialchars
http://fuelphp.com/docs/classes/security.html#method_htmlentities
The reason is,
Japanese language uses UTF-8 encoding,
and FuelPHP's Security::htmlentities automatically sets encoding to UTF-8
(If FuelPHP is configured to use UTF-8, Security::htmlentities uses UTF-8).
The text was updated successfully, but these errors were encountered: