Javascript
<title>gb2312 Unicode Conversion Tools </title>
<div align=center>
<center>
<table border=0 cellpadding=0 cellspacing=0 style= "Border-collapse:collapse" width=600 id=AutoNumber1 height=26 >
<tr>
<TD width=100% height=26>
<p Align=center><font face= Bold size=5 color= #FF0000 >unicode Conversion Tools </font></p>
<p> Use Method:</p>
<p> enter Chinese text in the text box below and press "convert" to convert it to Unicode characters. </p>
<p> you can restore it to Simplified Chinese by pressing "restore". </td>
</tr>
</table>
</center>
</div>
<p align=center>
<textarea cols=82 rows=10 id=code>
</textarea> </p>
<p align=center>
<input Type=button Onclick=encode (code,this) value= conversion >
<script>
var mode= "Zhuan";
function encode (OBJ,BTN) {
if (mode== "Zhuan") {
Obj.value=obj.value.replace (/[^\u0000-\u00ff]/g,function ($) {return Escape ($). Replace ((%u) (\w{4})/gi, "& #x $; ")});
btn.value= "Restore";
Mode= "Huan";
}else{
Obj.value=unescape (Obj.value.replace (/& #x/g, '%u '). Replace (/;/g, '));
Btn.value= "Transformation";
Mode= "Zhuan";
}
}
</script></p>