I got something weird happening here and I can\'t understand why, on my php 5.2.5 server (Just on Linux ,Windows php servers doesn\'t have same problem) When I use a POST F
The only way to change htmlentities()'s encoding is specifying it in its third parameter.
htmlentities()
There is no way to change the default encoding. Prior to PHP 5.4 It is always iso-8859-1.
iso-8859-1
This was changed in PHP 5.4 however and is now always utf-8
utf-8