|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-25 03:26 UTC] public at christopheringram dot com
[2004-03-25 09:43 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ When using htmlentities() on data that has high position characters ( >127), the characters are translated into &#nnnn; where nnnn is the character code. It seems the characters are translated properly to &#nnnn;, and then the ampersand is translated into &, making the translation of non ASCII characters pointless. Reproduce code: --------------- echo htmlentities("私はガラスを食べられます。それは私を傷つけません", ENT_QUOTES,'UTF-8'); Expected result: ---------------- 私はガラスを食べられます。それは私を傷つけません。