jquery传中文值乱码问题

  • 提交时采用encodeURI两次编码,例如

type=encodeURI(encodeURI('商品'))

 

  • 在后台action里要对取得的字符串进行decode

URLDecoder.decode(type, “UTF-8″);

猜你喜欢

转载自endless.iteye.com/blog/2299713