×

JSP技术中文乱码的研究

消耗积分:3 | 格式:rar | 大小:748 MB | 2011-01-14

手托初梦

分享资料个

JSP技术广泛应用于动态网页制作,但在应用中文字符时常常出现乱码。以前有关JSP技术中文乱码的研究,只是侧重于对常见的几种中文乱码情况分析,并从网页代码方面进行研究,然后给出相应的代码,缺少对造成中文乱码原因的研究。本文从造成乱码的根本原因入手进行分析,以JSP技术工作过程为线索,提出新的研究思路:从开发Java程序时所涉及的开发环境以及使用的开发工具着手,研究字符的存储与编码的关系,将影响Java中字符编码的原因分为内因和外因。研究结果表明,在使用JSP技术的过程中,中文字符的编码不仅在JSP工作过程中,会发生编码的转换,而且会因开发环境以及使用开发工具不同,使存储在内存的编码形式发生转换,每种编码之间的转换没有规律。本文系统地分析了Java中字符编码的转换,最后针对JSP中常见的中文乱码情况,给出了相应的解决方法。

 


 
Abstract:
 JSP technology is widely used in the production of dynamic web pages, but the chinese characters in its application often garbled. Chinese garbled before the JSP technology research, is focused on several common chinese garbled on the situation analysis, and researches aspects of the code from the page, and then gives the corresponding code, the lack of research into the reasons causes the chinese garbled. This paper analyses from the real causes of the underlying cause garbled. JSP technology researches to the work process for the clues, puts forward new research ideas: the development of Java programs involved in the development environment and start using the development tools, storage and encoding of character relationships, affecting the character encoding in Java is divided into internal and external reasons. The results show that use of JSP technology in the process, the chinese character code in the JSP course of their work not only will happen coding of the convert, but also because of development environment, and use the development tools, the code stored in memory in different forms. Between each code conversion is not the law. This paper systematically analysed the Java character encoding conversion, in the end for the JSP common situation in the chinese garbled, the corresponding solution was given.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !