检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.177