计算机工程与应用 ›› 2007, Vol. 43 ›› Issue (4): 93-95.

• 产品、研发、测试 • 上一篇    下一篇

Java网络传输中字符编码问题的研究

包竹苇 李淼 张建   

  1. 中国科学院合肥智能机械研究所 中国科学院合肥智能机械研究所 中国科学院合肥智能机械研究所
  • 收稿日期:2006-01-11 修回日期:1900-01-01 出版日期:2007-02-01 发布日期:2007-02-01
  • 通讯作者: 包竹苇

The Research of Character Encoding in Java Net Transfers

  • Received:2006-01-11 Revised:1900-01-01 Online:2007-02-01 Published:2007-02-01

摘要: 针对Java客户端与服务器端通信,客户端浏览器显示等中文字符编码常常出现编解码错误、显示乱码的问题,本文从操作系统内部,Java虚拟机和网络传输过程进行研究,分析各种字符编码的表现形式,服务器端Servlet缺省字符集等,找出了问题的根源;提出在Java网络传输中中文字符编码问题的解决方法,并有效地应用于农业专家系统开发平台(DET6.0)的网络发布和知识推理中。

Abstract: Aim at the problem of Chinese character encoding/decoding incorrectly in Java communications between client and server, this article analyze the manifestation of various character list coding and Servlet default character set from the operating system inner part, the Java Virtual Machine and net transfers process. It put forward resolving the character encoding problem in Java net transfers and had used in DET6.0 NetRegister and NetReasoning system effectively.