Mantis - Quercus
Viewing Issue Advanced Details
3653 minor always 08-27-09 13:13 06-17-11 18:20
nam  
 
normal  
new 4.0.0  
open  
none    
none  
0003653: htmlentities seem to be mixing up multibyte strings
(rep by kenfoo)

htmlentities seem to be mixing up multibyte strings. htmlspecialchars seem to be working ok.

Notes
(0005240)
dicr   
05-11-11 15:35   
This is very old problem I found too, but it not solved yet ..
(0005242)
kdecherf   
05-13-11 00:26   
Can you give us an example ? Thx.
(0005327)
dicr   
06-17-11 18:20   
htmlentities("&0001058;&0001077;&0001089;&0001090;", ENT_QUOTES, "UTF-8") return incorrect string.
Th workaround is to use htmlspecialchars instead of htmlentities.