Urlencoding, often written with VB, easy to implement urlencode, and using http://www.9cbs.net/develop/read_article.asp?id=13846 to easily rewrite into VBS to achieve some Chinese characters, but because some people Need to write completely with JavaScript, while JavaScript is unicode unicode, you need a Unicode and GB convert library.
Unicode and GB convert libraries and urlencode and getspell functions, please download http://www.blueidea.com/user/qswh/qswhu2gb.jsvar qswhu2GB = []; // Unicode and GB correspondence table, slightly var qswhspell = [ ]; // Pinyin control table, slight function urlencode (str) {var i, c, ret = ", strspecial ="! # $% & '() * , / :; <=>? @ [/] ^ `{|} ~%"; For (i = 0; i
Function GetSpell (STR, SP) {VAR I, C, T, RET = ""; if (sp == NULL) sp = ""; for (i = 0; i