Bug #11175 Updated: SpecialChars handling

From: Date: Mon, 18 Jun 2001 13:20:41 +0000
Subject: Bug #11175 Updated: SpecialChars handling
Groups: php.dev 
Request: Send a blank email to php-dev+get-56861@lists.php.net to get a copy of this message
ID: 11175 Updated by: sniper Reported By: bate@bate.de Old-Status: Open Status: Closed Bug Type: Strings related Operating system: PHP Version: 4.0.5 Assigned To: Comments: this is fixed in CVS. Try latest snapshot from http://snaps.php.net/ Previous Comments: --------------------------------------------------------------------------- [2001-06-08 02:50:30] bate@bate.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-08 02:40:41] bate@bate.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-05-29 14:11:47] bate@bate.de Oh no... :( sorry but just your report script displays it wrong after first report. Regards Bat[e] --------------------------------------------------------------------------- [2001-05-29 14:10:58] bate@bate.de F**** you script doestn display my full types. str_replace("&amp;#8364;","&#8364;" Maybe thats helps. :) --------------------------------------------------------------------------- [2001-05-29 14:09:47] bate@bate.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 &amp;#8364; but thats wrong correct are &#8364; workaround str_replace("&amp;#8364;","&#8364;",$formstr) Bat[e] --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11175&edit=2

« previous php.dev (#56861) next »