期刊文献+

JSP技术中文乱码的原因及解决方法 被引量:11

The reason and solution of Chinese garbled code in JSP technology
下载PDF
导出
摘要 JSP技术广泛应用于动态网页制作,但在应用中文字符时常常出现乱码。以前有关JSP技术中文乱码的研究,只是侧重于对常见的几种中文乱码情况分析,并从网页代码方面进行研究,然后给出相应的代码,缺少对造成中文乱码原因的研究。本文从造成乱码的根本原因入手进行分析,以JSP技术工作过程为线索,提出新的研究思路:从开发Java程序时所涉及的开发环境以及使用的开发工具着手,研究字符的存储与编码的关系,将影响Java中字符编码的原因分为内因和外因。研究结果表明,在使用JSP技术的过程中,中文字符的编码不仅在JSP工作过程中,会发生编码的转换,而且会因开发环境以及使用开发工具不同,使存储在内存的编码形式发生转换,每种编码之间的转换没有规律。本文系统地分析了Java中字符编码的转换,最后针对JSP中常见的中文乱码情况,给出了相应的解决方法。 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.
作者 杨金花
出处 《电子设计工程》 2011年第1期25-28,共4页 Electronic Design Engineering
关键词 字符编码 中文乱码 JSP技术 SERVLET character encoding chinese garbled JSP technology Servlet
  • 相关文献

参考文献7

二级参考文献14

共引文献21

同被引文献47

引证文献11

二级引证文献29

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部