Topic: jsp中文问题

  Print this page

1.jsp中文问题 Copy to clipboard
Posted by: wood
Posted on: 2005-06-07 11:34

当使用<%@ page contentType="text/html; charset=gbk"%>后,

如何设置,使input中输入的字符串作做字符转换

环境是:tomcat5.5

2.Re:jsp中文问题 [Re: wood] Copy to clipboard
Posted by: 20502422
Posted on: 2005-06-07 15:05

在目标页面中加这句:
<% request.setCharacterEncoding("gbk"); %>

3.Re:jsp中文问题 [Re: wood] Copy to clipboard
Posted by: wood
Posted on: 2005-06-07 15:23

楼上谢谢!!但没有解决问题。

4.Re:jsp中文问题 [Re: wood] Copy to clipboard
Posted by: wood
Posted on: 2005-06-07 15:40

http://www.mblogger.cn/computer.mblogger.cn/ehero/

非常清楚,不敢独享!

tomcat中有没有服务器级的编码方式设置项。即当形成response、reques中的参数时,字符串的字符集可以自己设定


   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