<script language=javascript>
var ServerMessage
function utf8to16(str) {
var out, i, len, c;
var char2, char3;
out = "";
len = str.length;
i = 0;
while(i < len) {
c = str.charCodeAt(i++);
switch(c >> 4)
{
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:
// 0xxxxxxx
out += str.charAt(i-1);
break;
case 12: case 13:
// 110x xxxx 10xx xxxx
char2 = str.charCodeAt(i++);
out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F));
break;
case 14:
// 1110 xxxx 10xx xxxx 10xx xxxx
char2 = str.charCodeAt(i++);
char3 = str.charCodeAt(i++);
out += String.fromCharCode(((c & 0x0F) << 12) |
((char2 & 0x3F) << 6) |
((char3 & 0x3F) << 0));
break;
}
}
return out;
}
document.write(utf8to16(unescape("%e5%bf%ab%e4%b9%90%e5%9c%a3%e8%af%9e%ef%bc%81%e4%bb%80%e4%b9%88%e4%bd%bf%e5%9c%a3%e8%af%9e%e5%bf%ab%e4%b9%90%ef%bc%9f%e4%b8%8d%e6%98%af%e9%82%a3%e5%bf%ab%e4%b9%90%e7%9a%84%e9%98%b3%e5%85%89%ef%bc%8c%e4%b9%9f%e4%b8%8d%e6%98%af%e9%b8%9f%e5%84%bf%e7%9a%84%e5%95%81%e5%95%be%ef%bc%9b%e9%82%a3%e6%98%af%e6%84%89%e5%bf%ab%e7%9a%84%e5%bf%b5%e5%a4%b4%e5%92%8c%e5%b9%b8%e7%a6%8f%e7%9a%84%e7%ac%91%e5%ae%b9%ef%bc%8c%e6%98%af%e6%b8%a9%e9%a6%a8%e6%85%88%e7%88%b1%e7%9a%84%e9%97%ae%e5%80%99%e3%80%82")));
</script>
posted on 2008-04-01 10:57
有猫相伴的日子 阅读(6546)
评论(1) 编辑 收藏 所属分类:
web-demo