note 99535 added to function.unpack

From: Date: Mon, 23 Aug 2010 09:27:19 +0000
Subject: note 99535 added to function.unpack
Groups: php.notes 
Request: Send a blank email to php-notes+get-171934@lists.php.net to get a copy of this message
To norwood at computer dot org, what you are trying to do is character encoding conversion, this is why unpack can't help you here. You should have a look to iconv() function, and try something like: <?php $strWithoutNulls = iconv('UTF-16LE', 'UTF-8', $strWithNulls); ?> for a conversion from UTF-16 (UTF-16LE for Little endian, or UTF-16BE for Big endian). ---- Server IP: 89.31.146.176 Probable Submitter: 193.251.24.165 ---- Manual Page -- http://www.php.net/manual/en/function.unpack.php Edit -- https://master.php.net/note/edit/99535 Del: integrated -- https://master.php.net/note/delete/99535/integrated Del: useless -- https://master.php.net/note/delete/99535/useless Del: bad code -- https://master.php.net/note/delete/99535/bad+code Del: spam -- https://master.php.net/note/delete/99535/spam Del: non-english -- https://master.php.net/note/delete/99535/non-english Del: in docs -- https://master.php.net/note/delete/99535/in+docs Del: other reasons-- https://master.php.net/note/delete/99535 Reject -- https://master.php.net/note/reject/99535 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171934) next »