摘要
在简要介绍字符编码常识的基础上,深入分析了Java源程序在编译运行过程中的编码解码过程,从而找到了能直接在控制台上运行的Java类,JSP,Servlet及Java程序和数据库之间中文乱码问题产生的根本原因,并分别给出了解决方法,从而较好地解决了Java程序在移植及输入输出过程中的乱码问题。
On the basis of introducing the general knowledge of character coding, this paper deeply catalyzed the coding and decoding protess in compilation and execution of the Java programs. It found the root cause from which the disordered code problem in Chinese come out, involving classes run on the con.sole, JSP, Servlet and the accessing between Java program and database, then it gave some solutions for each instance. So the Java program can display Chinese characters functionally in different operation platform during input and output.
出处
《计算机技术与发展》
2006年第5期100-102,108,共4页
Computer Technology and Development