PHP decryption of Unicode coded characters

time:11-04-06 forum:PHP tools and code
  Used for decryption, such as
[code]\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0036\u0031\u002e\u0031\u0033\u0036\u002e\u0031\u0035\u0032\u002e\u0035\u0035\u002f\u0073\u0061\u006e\u0067\u0075\u006f\u0067\u0061\u006d\u0065\u002f\u0064\u006f\u0077\u006e\u006c\ u006f\u0061\u0064\u002f\u0070\u0061\u0074\u006 3\u0068\u002f\u0073\u0061\u006e\u0039\u0039\u002e\u0039\u002f\u0073\u0061\u006e\u0039\u002d\u0065\u0064\u0069\u0074\u006f\u0072\u002d\u0030\u0039\u002d\u0076\u0031\u002e\u0030\u002e\u0072\u0061\u0072[/code] encrypted string

[code].lt;? Php
function uni_decode ($s) {
p Reg_match_all ('/\.amp;.#91; 0-9.#93; {2,5}), $s, $html_uni;
preg_match_all ('/.#91; \\\%.#93; U); .#91; 1.#93; $i) {
$js.#91;.#93; $js_uni.#91; 1.#93;.#91; $i.#93;
{> > = {} / > Unicode2utf8 ($utf8.#91; $j.#93;), $code);

return $code; //$s; //preg_replace ('/\\\u).
$str.=chr ($c);
else if ($c.Lt; 0x800) {
$str.=chr. $c.gt;.Gt; 6.Amp; 0x3f);
$str.=chr (0x80 $c.Amp; 0x3f);
{} else. / > $str.=chr (0x80 $c.Amp; 0x3f);
}
return $str;
}

//echo uni_decode ($str); / / everyone, I am a lonely soul! This is the test text!

$download=uni_decode ($download);

prev:Chinese and German girls put marshmallow... next:Implementation of escape decoding functi...
post comment
Notice



approved   She was 10 years old as a babysitter...   Ji'nan "shit mountain" should be sho...   The first competition school in Chin...   These 9 kinds of scary symptoms foun...   A 9 year old student corrected the w...
rand   Importing large databases to virtual...   Using regular expressions to verify ...   Regular string replacement and parti...   PHP determines the character functio...   Put URL shortcuts on the PHP code on...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com