PHP uses the iconv () function to transform Unicode encoding into UTF-8 code that can be browsed.
[code].lt; php
function unicode_encode ($name) {
$name = iconv. ;
$c2 = $name.#91; $i 1.#93;
if (ord ($c).Gt; 0)
function unicode_decode ($name)
{
if (! Empty ($matches))
{
$name =; 2, 2), 16, 10);
$code2 = base_convert (substr ($str, 4), 16, 10);
$c = Chr ($code).Chr ($code2); Icode_decode ('\u0068\u0074\u0074\u0070').'.lt; /h3.gt;';
$name ='subin';
echo'.lt;