|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11175 SpecialChars handling
Submitted: 2001-05-29 14:09 UTC Modified: 2001-06-18 09:20 UTC
From: bate at bate dot de Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.5 OS: Linux/FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 40 = ?
Subscribe to this entry?

 [2001-05-29 14:09 UTC] bate at bate dot de
the functions
htmlentities() and htmlspecialchars()
removes from the euro char (?) some special chars.


I have a form and i type my euro char in.
after a post i handle it so.
$formstr = htmlentities($formstr);

output of $formstr returns
€ but thats wrong correct are €

workaround str_replace("€","€",$formstr)



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-29 14:10 UTC] bate at bate dot de
F**** you script doestn display my full types.


Maybe thats helps. :)
 [2001-05-29 14:11 UTC] bate at bate dot de
Oh no... :( sorry but just your report script displays it wrong after first report.

Regards Bat[e]
 [2001-06-08 02:40 UTC] bate at bate dot de
I checked the Source and found the Problem:

-> string.c
Line 2512: php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br />\n",7,return_value);

Correct this please to
Line 2512: php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br>\n",7,return_value);

 [2001-06-08 02:50 UTC] bate at bate dot de
Sorry for the mistake but my last comment was for the wrong Bug report. :) posted it again for bugreport with id 11347.

Thx Bat[e]
 [2001-06-18 09:20 UTC]
this is fixed in CVS. Try latest snapshot from

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 23:01:25 2023 UTC