note 81494 added to function.iconv

From: Date: Sat, 01 Mar 2008 02:44:59 +0000
Subject: note 81494 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-136627@lists.php.net to get a copy of this message
So, as iconv() does not always work correctly, in most cases, much easier to use htmlentities(). Example: <?php $content=htmlentities(file_get_contents("incoming.txt"), ENT_QUOTES, "Windows-1252"); file_put_contents("outbound.txt", html_entity_decode($content, ENT_QUOTES , "utf-8")); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 195.189.142.254 (proxied: 193.239.129.211) ---- Manual Page -- http://www.php.net/manual/en/function.iconv.php Edit -- https://master.php.net/note/edit/81494 Del: integrated -- https://master.php.net/note/delete/81494/integrated Del: useless -- https://master.php.net/note/delete/81494/useless Del: bad code -- https://master.php.net/note/delete/81494/bad+code Del: spam -- https://master.php.net/note/delete/81494/spam Del: non-english -- https://master.php.net/note/delete/81494/non-english Del: in docs -- https://master.php.net/note/delete/81494/in+docs Del: other reasons-- https://master.php.net/note/delete/81494 Reject -- https://master.php.net/note/reject/81494 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136627) next »