I have the following code:
function testAccents() { $str = "ร รฉรจ"; $html = htmlentities($str); echo $html; }
When I run it, instead of getting àéè I get à éè .
I thought this might be an encoding problem, but the utf-8 file is:
> file -bi PublicationTest.php text/x-c++; charset=utf-8
Why am I getting this strange result?
EDIT: I am using PHP 5.3.
source share