note 124410 added to function.iconv

From: Date: Mon, 18 Nov 2019 13:41:30 +0000
Subject: note 124410 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-213145@lists.php.net to get a copy of this message
If you want to convert to a Unicode encoding without the byte order mark (BOM), add the endianness to the encoding, e.g. instead of "UTF-16" which will add a BOM to the start of the string, use "UTF-16BE" which will convert the string without adding a BOM. i.e. <?php iconv('CP1252', 'UTF-16', $text); // with BOM iconv('CP1252', 'UTF-16BE', $text); // without BOM ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.54 (proxied: 175.32.58.231) ---- Manual Page -- http://php.net/manual/en/function.iconv.php Edit -- https://master.php.net/note/edit/124410 Del: integrated -- https://master.php.net/note/delete/124410/integrated Del: useless -- https://master.php.net/note/delete/124410/useless Del: bad code -- https://master.php.net/note/delete/124410/bad+code Del: spam -- https://master.php.net/note/delete/124410/spam Del: non-english -- https://master.php.net/note/delete/124410/non-english Del: in docs -- https://master.php.net/note/delete/124410/in+docs Del: other reasons-- https://master.php.net/note/delete/124410 Reject -- https://master.php.net/note/reject/124410 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213145) next »