---
title: "Tomcat解决URL传中文的方法"
author: "ericjoe"
date: "2007-09-28T19:03:00Z"
tags: []
slug: "tomcat-url"
draft: false
lastmod: "2007-09-28T19:03:00Z"
id: 393849
url: "https://coffeef.iteye.com/blog/393849"
---

在TOMCAT-HOME/conf/server.xml中，找到当前web使用的Connector，加入URIEncoding=”GB18030”属性，如：

&lt;Connector port="8080" maxHttpHeaderSize="8192"

 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

 enableLookups="false" redirectPort="8443" acceptCount="100"

 connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="GB18030"/&gt;

这样就可以解决相关的url传中文的问题。