tomcat 中文乱吗怎么处理 楼主,看过来:http://community.csdn.net/Expert/topic/3530/3530812.xml?temp=.6263849 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我用的是<%@ page contentType="text/html; charset=GBK"%> 在get页面加入<%@page contentType="text/html; charset=gb2312"%><%request.setCharacterEncoding("GB2312");%> 我加了,<%@page contentType="text/html; charset=gb2312"%><%request.setCharacterEncoding("GB2312");%>不好使 有没有办法直接修改tomcat的配置文件 有没有办法直接修改tomcat的配置文件====================================================================有办法!http://community.csdn.net/Expert/topic/3582/3582938.xml?temp=.2923853 我在tomcat5.0中<Connector acceptCount='100' connectionTimeout='20000' debug='0'disableUploadTimeout='true' enableLookups='false'maxSpareThreads='75' maxThreads='150' minSpareThreads='25'port='8080' redirectPort='8443' URIEncoding='GBK'/>而在 tomcat4.0中文就是乱吗(get提交的)为什么 public static String gbTo(String gbStr) { String str = null; try{ str = new String(gbStr.getBytes("GB2312"),"8859_1"); }catch(Exception e){} return str; } public static String toGb(String Str) { String str = null; try{ str = new String(Str.getBytes("8859_1"),"GB2312"); }catch(Exception e){} return str; } <% @page pageEncoding=gb2312%> 纠结Hibernate ORACLE 分页问题。请大家帮忙看下,为什么? 关于 org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer 诡异的事情,奇怪的报错,在线等,急,先100,后可以追加40 java语法探讨问题 怎样在标签中使用标签 关于Ajax 和 struts上传进度条 跨页面的事务问题 大家来讨论一下JAVA项目的目录结构及命名规范吧 j2ee1.4 lookup 报错NoInitialContextException ,急 如何实现两个线程的同时执行? 请教2个socket的问题 关于如何即准确又高效的显示错误!
<%@ page contentType="text/html; charset=GBK"%>
<%@page contentType="text/html; charset=gb2312"%>
<%request.setCharacterEncoding("GB2312");%>
<%@page contentType="text/html; charset=gb2312"%>
<%request.setCharacterEncoding("GB2312");%>
不好使
====================================================================
有办法!
http://community.csdn.net/Expert/topic/3582/3582938.xml?temp=.2923853
disableUploadTimeout='true' enableLookups='false'
maxSpareThreads='75' maxThreads='150' minSpareThreads='25'
port='8080' redirectPort='8443' URIEncoding='GBK'/>
而在 tomcat4.0中文就是乱吗(get提交的)为什么
public static String gbTo(String gbStr)
{
String str = null;
try{
str = new String(gbStr.getBytes("GB2312"),"8859_1");
}catch(Exception e){}
return str;
}
public static String toGb(String Str)
{
String str = null;
try{
str = new String(Str.getBytes("8859_1"),"GB2312");
}catch(Exception e){}
return str;
}