note 98776 added to function.unpack

From: Date: Wed, 07 Jul 2010 09:09:01 +0000
Subject: note 98776 added to function.unpack
Groups: php.notes 
Request: Send a blank email to php-notes+get-170749@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 78.86.2.15 ---- Manual Page -- http://www.php.net/manual/en/function.unpack.php Edit -- https://master.php.net/note/edit/98776 Del: integrated -- https://master.php.net/note/delete/98776/integrated Del: useless -- https://master.php.net/note/delete/98776/useless Del: bad code -- https://master.php.net/note/delete/98776/bad+code Del: spam -- https://master.php.net/note/delete/98776/spam Del: non-english -- https://master.php.net/note/delete/98776/non-english Del: in docs -- https://master.php.net/note/delete/98776/in+docs Del: other reasons-- https://master.php.net/note/delete/98776 Reject -- https://master.php.net/note/reject/98776 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170749) next »