ID:               47146
 Updated by:       [email protected]
 Reported By:      teiseller at gmx dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: Windows XP SP2
 PHP Version:      5.2.8
 New Comment:

What if you pass the correct charset in use to the function?
(see http://php.net/htmlentities/ for more)


Previous Comments:
------------------------------------------------------------------------

[2009-01-19 11:03:50] teiseller at gmx dot de

Description:
------------
the function htmlentities($string) does not convert german umlauts to
the coresponding html entity. For example, an "ü" is convertet into "ü"
instead of ü.

Reproduce code:
---------------
just perform the htmlentities function on any string containing a
german umlaut, e.g. ä    ü     ö

Expected result:
----------------
it should return the string with the following substitutes:

ä --->  ä          
ü --->  ü
ö --->  ö
Ä --->  Ä          
Ü --->  Ü
Ö --->  Ö

Actual result:
--------------
it returns cryptic chars for these characters, like "ü" (without the
"")


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47146&edit=1

Reply via email to