Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Tomcat  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Tomcat的版本问题!
catherine_leaf



发贴: 0
积分: 0
于 2004-05-08 17:06 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的操作系统是2000p,以前装的是Tomcat4.0.3,能够传递中文参数;但是改成Tomcat4.1.3以后,传递的中文参数就变成乱码了。
有那位高手遇到过这种情况,帮帮我呀!



作者 Re:Tomcat的版本问题! [Re:catherine_leaf]
stlinuxily



发贴: 0
积分: 0
于 2004-06-23 21:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我也遇到了类似的问题。我的是Tomcat4.1.30,听说在编译的时候使用encoding ,是怎么回事?即
javac -encoding ……

关注中……



作者 Re:Tomcat的版本问题! [Re:catherine_leaf]
coolfish0007



发贴: 0
积分: 0
于 2004-06-24 16:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
去看看servlet中response中getWriter里是按什么转码的吧。
servlet中默认是按Iso-8859-1-->unicode的方式来转码的。
我们可以用response.setContentType("text/html; charset=utf-8");
这样输出流中什么样的文字都可以正确的编码了。

中文或其他文字传到后台会按iso-8859-1---->unicode的方式进行转码之后才
处理。java里处理的只有unicode.



作者 Re:Tomcat的版本问题! [Re:catherine_leaf]
coolfish0007



发贴: 0
积分: 0
于 2004-06-24 16:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
哎呀,总之一句话,把你jsp里charset设成utf-8,就可以了。
你的页面也可以包含其他如日文的文字.




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923