HELP!!!!jswdk如何显示汉字?对于汉字,总是显示乱码。

guochuanxi 2001-04-02 10:44:00
jswdk如何显示汉字?对于汉字,总是显示乱码。
他的虚里目录怎么设?权限如何修改?
可以在LINUX下用jswdk吗?
...全文
93 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
rox 2001-04-27
  • 打赏
  • 举报
回复
对于jsp中文的问题,你可以到水木清华bbs上,有一个非常详细的解释
rox 2001-04-25
  • 打赏
  • 举报
回复
试一试<%@page language="java" contentType="text/html;charset=gb2312">,
getBytes("ISO8859-1")中的ISO8859-1改为GBK
dobad 2001-04-25
  • 打赏
  • 举报
回复
同意,以上二者!
friends 2001-04-25
  • 打赏
  • 举报
回复
你可以在文件头加入<%@page contentType="text/html;charset=gb2312">就可以了
ylunar 2001-04-25
  • 打赏
  • 举报
回复
用以下函数对包含中文的字符串进行转换:
String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{
}
return "null";
}
emily_wang 2001-04-25
  • 打赏
  • 举报
回复
I got same annoyance as you. Finally, I change JSWDK to tomcat. Everything is ok.
So if you solve the problem, would you mind let me know. my email address is lilac_wang@sina.com. thanks.
guochuanxi 2001-04-02
  • 打赏
  • 举报
回复
拜托各位大侠啦!!!!!!

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧