note 72275 added to function.str-replace

From: Date: Wed, 10 Jan 2007 18:48:34 +0000
Subject: note 72275 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-121538@lists.php.net to get a copy of this message
Note regarding the code provided by 'heavyraptor' below, which converts accented characters: To get the code to work, I had to change the line <?php $str = htmlentities($str); ?> to something like <?php $str = htmlentities($str, ENT_QUOTES, 'UTF-8'); ?> My problem may have had something to do with the version of php or some default settings, as I found it necessary to specify UTF-8 on one server but not another. Thanks to the original posters for the code! ---- Server IP: 66.163.161.117 Probable Submitter: 72.72.12.122 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/72275 Del: integrated -- https://master.php.net/note/delete/72275/integrated Del: useless -- https://master.php.net/note/delete/72275/useless Del: bad code -- https://master.php.net/note/delete/72275/bad+code Del: spam -- https://master.php.net/note/delete/72275/spam Del: non-english -- https://master.php.net/note/delete/72275/non-english Del: in docs -- https://master.php.net/note/delete/72275/in+docs Del: other reasons-- https://master.php.net/note/delete/72275 Reject -- https://master.php.net/note/reject/72275 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121538) next »