php.net |  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
 [2001-05-29 14:09 UTC] bate at bate dot de
the functions
htmlentities() and htmlspecialchars()
removes from the euro char (?) some special chars.

Example:

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)


Bat[e]

Patches

Pull Requests

History

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

str_replace("\&\a\m\p\;\#\8\3\6\4\;","€"

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:

./ext/standart/
-> 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] sniper@php.net
this is fixed in CVS. Try latest snapshot from http://snaps.php.net/

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 13:01:30 2024 UTC