Java中文乱码问题研究  被引量:12

Research of Character Encoding in Java

在线阅读下载全文

作  者:任平红[1] 陈矗[1] 郑秋梅[2] 

机构地区:[1]曲阜师范大学计算机科学学院,山东日照276826 [2]中国石油大学计算机与通信工程学院,山东青岛266555

出  处:《计算机技术与发展》2013年第3期117-120,共4页Computer Technology and Development

基  金:国家自然科学基金资助项目(51006123)

摘  要:Java语言的跨平台特性,使其在各种系统环境下能够正确运行,但是在开发Java Web应用程序时,因为编码不统一,经常会出现中文乱码问题。针对客户端和服务器端传输数据,客户端显示中文字符编码,以及应用程序与数据库之间的数据交互等问题,分析了Java乱码产生的原因,并针对每种情况,结合实际的项目开发经验,给出了设置页面编码方式,修改Web服务器编码属性,以及使用过滤器等等方法。采用以上方法,可以有效地解决Java Web中的中文乱码问题。The crossplatform feature of Java language enables Java applications to run correctly in a variety of system environments. However, Chinese characters often garble in the development of Web applications because of nonuniform encoding. For data transmis sion between client and server, the client's display of Chinese characters and the interaction between Java applications and databases, ana lyze the cause of garbled characters and present solution for each case according to the actual experience in project development such as setting the encoding of pages, modifying encoding attribute of the Web server and making use of filters. The problem of Chinese garbled in the Java Web can be solved effectively referring to the above methods,

关 键 词:编码 JAVA WEB应用 中文乱码 字符集 过滤器 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象