note 98776 deleted from function.unpack by danbrown

From: Date: Wed, 07 Jul 2010 14:03:31 +0000
Subject: note 98776 deleted from function.unpack by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170757@lists.php.net to get a copy of this message
Note Submitter: Ben XO ---- Norwood, you would have been better off using mb_convert_encoding(). Your "bytes separated by nulls" are most probably UTF-16. This will trip you up the moment you find text that has e.g. accents, smart-quotes, currency signs, etc.

« previous php.notes (#170757) next »