|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bate at bate dot de
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 22:01:30 2024 UTC