window.location.href = "../BookAction.do?name=‘三毛流浪记‘&price=20" 这种方式传递中文参数会出现乱码。 在js文件中,我们可以这样(用encodeURI转2次,转1次还是乱码): var?loginname?=?encodeURI(enc...
分类:
其他好文 时间:
2014-09-19 12:19:35
阅读次数:
235
做跨平台开发时,大家用不同的IDE合作开发,最令人头疼的事就是各种乱码问题。常用的IDE都支持utf-8编码和unix格式行尾'\n'。1、XCODE设置文本编码及换行Xcode >> Preferences == Text Editing — Editing:其下有Default text enc...
分类:
其他好文 时间:
2014-09-16 18:56:50
阅读次数:
292
配置:{ "font_face": "Source Code Pro", "font_size": 13, "highlight_line": true, "ignored_packages": [ "Vintage" ], "show_enc...
分类:
其他好文 时间:
2014-09-06 22:30:24
阅读次数:
385
用两台主机坐Tigase的Tsung测试,其中1台运行Tigase,另1台运行Tsung。1.Tigase服务器设置tigase.conf:#osgiEnabled=(true|false)#osgiEnabled=falseOSGI=${osgiEnabled}ENC="-Dfile.encodi...
分类:
其他好文 时间:
2014-08-27 16:24:58
阅读次数:
281
vim里面的编码主要跟三个参数有关:enc(encoding)、fenc(fileencoding)、fence(fileencodings)fenc是当前文件的编码,也就是说,一个在vim里面已经正确显示了的文件(前提是你的系统环境跟你的enc设置匹配),你可以通过改变fenc后再w来将此文件保存...
分类:
其他好文 时间:
2014-08-18 20:18:02
阅读次数:
202
Request :请求行 -- GET|POST /1.html http/1.1 //请求方式、页面请求头--accept:text/html,image/* //告诉服务器,客户机支持的文件格式accept-charset:utf-8 //客户机的采用的编码accept-enc...
分类:
其他好文 时间:
2014-08-13 17:50:26
阅读次数:
177
import osimport sysimport structdef enc(path, key): path_ret = "" for i in range(0, len(path)/4): path_ret += struct.pack(">> ===========...
分类:
编程语言 时间:
2014-08-11 11:27:22
阅读次数:
2362
// 加密传入的数据是byte类型的,并非使用decode方法将原始数据转二进制,String类型的数据 使用 str.getBytes()即可
String str = "Hello!";
// 在这里使用的是encode方式,返回的是byte类型加密数据,可使用new String转为String类型
String strBase64 = new String(Base64.enc...
分类:
移动开发 时间:
2014-08-05 11:16:59
阅读次数:
228
/// /// AES 加密 /// /// 待加密的字符串 /// 加密密钥,要求为32位 /// 加密成功返回加密后的字符串,失败 throw public static string Enc...
分类:
其他好文 时间:
2014-07-29 12:25:26
阅读次数:
181
Mini version:set enc=utf-8 ffs=unix,dos,mac lm=zh_CN.utf-8set nu nowb nocp nowrap ru nobk sm is noswf acd hls autoread set hi=700 mouse=a sel=exclusiv...
分类:
其他好文 时间:
2014-07-25 14:07:21
阅读次数:
265