摘要:
View Code 1 /* 2 * GB2312转UTF8 3 * 例: 4 * var xx=new GB2312UTF8(); 5 * var Utf8=xx.Gb2312ToUtf8("你aaa好aaaaa"); 6 * var Gb2312=xx.Utf8ToGb2312(Utf8); 7 * alert(Gb2312); 8 */ 9 10 function GB2312UTF8(){ 11 this.Dig2Dec=function(s){ 12 var retV = 0; 13 if(s.length == 4){... 阅读全文