note 99535 deleted from function.unpack by danbrown

From: Date: Mon, 23 Aug 2010 15:45:46 +0000
Subject: note 99535 deleted from function.unpack by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171947@lists.php.net to get a copy of this message
Note Submitter: chrisphp77 at yopmail dot com ---- 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).

« previous php.notes (#171947) next »