热搜关键词: 数字信号处理RTOSC语言Linux射频电路

rar

JSP技术中文乱码的研究

  • 1星
  • 2013-09-22
  • 676.04KB
  • 需要2积分
  • 0次下载
标签: JSP

JSP

乱码

JSP

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.

展开预览

猜您喜欢

评论

登录/注册

积分规则

意见反馈

求资源

回顶部

推荐内容

热门活动

热门器件

随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved
×