note 103298 added to function.mb-convert-encoding

From: Date: Wed, 06 Apr 2011 08:44:32 +0000
Subject: note 103298 added to function.mb-convert-encoding
Groups: php.notes 
Request: Send a blank email to php-notes+get-178544@lists.php.net to get a copy of this message
You can use the HTML-ENTITIES encoding to insert arbitrary Unicode characters, e.g. "U+25B6 (BLACK RIGHT-POINTING TRIANGLE)": <?php $triangle = mb_detect_order(mb_convert_encoding('&#x25B6;', 'UTF-8', 'HTML-ENTITIES')); ?> Be aware though that older PHP versions do not seem to support hexadecimal notation (&#x25B6;). In such case, use decimal notation (&#9654;): <?php $triangle = mb_detect_order(mb_convert_encoding('&#9654;', 'UTF-8', 'HTML-ENTITIES')); ?> ---- Server IP: 80.64.47.13 Probable Submitter: 80.37.14.51 ---- Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php Edit -- https://master.php.net/note/edit/103298 Del: integrated -- https://master.php.net/note/delete/103298/integrated Del: useless -- https://master.php.net/note/delete/103298/useless Del: bad code -- https://master.php.net/note/delete/103298/bad+code Del: spam -- https://master.php.net/note/delete/103298/spam Del: non-english -- https://master.php.net/note/delete/103298/non-english Del: in docs -- https://master.php.net/note/delete/103298/in+docs Del: other reasons-- https://master.php.net/note/delete/103298 Reject -- https://master.php.net/note/reject/103298 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178544) next »