utf-8编码转换工具(源代码)
[color=blue][b]直接转换或测试请点击这里 [/b][/color][url=http://89w.org/data/utf.php][b][color=red]http://89w.org/data/utf.php[/color][/b][/url] fn9w;R9]3US[color=darkgreen][b]utf-8编码转换工具(源代码),代码如下:[/b][/color] iwxC,W:d[
[code]<div id="article_content">1gS(K\`9a W%ct4f#KI
<p align=center>*{?R4t P.X~K&W
<textarea cols=82 rows=10 id=code>(u%{fi:kp/m|
</textarea> </p>)oly*cR+|$~U/`4f
<p align=center>
<input type=button onclick=encode(code,this) value=转化>Gkn7Y"T
<script>
var mode="zhuan";cj{r fL
function encode(obj,btn){A6Og%S!J T A
if(mode=="zhuan"){
obj.value=obj.value.replace(/[^\u0000-\u00FF]/g,function($0){return escape($0).replace(/(%u)(\w{4})/gi,"&#x$2;")});
btn.value="还原";
mode="huan";%I/du4N`3R
}else{a0F6a1|$t'R0D
obj.value=unescape(obj.value.replace(/&#x/g,'%u').replace(/;/g,''));K9a jJpC$O
btn.value="转化";3KC2s3x0~ vT
mode="zhuan";
}
}$yI|&PZ,\
</script></p>
</div>[/code]
页:
[1]