PHP uses iconv () function to solve UNICODE coded UTF-8 character set.
[code].lt;
function uni_decode ($s) {
preg_match_all. = array_merge ($html_uni.#91; 0.#93; $js_uni.#91; 0.#93;);
$js = array ($i=0; $i.lt; $i.lt);
$code = $s;
for ($j=0; $j.lt; count ($utf8); $j) );
}
function unicode2utf8 ($c) {
$str=.quot;.Quot;
if.
} else if ($c.Lt; 0x10000) {
$str.=chr (0xe0 $c.gt;.Gt; 12);
$str.=chr (0x80 $c.gt;.Gt; 12.Amp; 0x3f);
$str.=chr (.Gt; > > > > > > > > > > I am the soul! .lt; br /.gt; \u8FD9\u662F\u6D4B\u8BD5\u6587\u672C\uFF01';
echo uni_decode ($str); / / everyone, I am a lonely soul! This is the test text!
?.gt; [/code]