---
title: "tomcat乱码解决"
author: "g21121"
date: "2012-04-09T14:32:39Z"
tags: []
categories: ["企业架构"]
slug: "tomcat"
draft: false
lastmod: "2012-04-09T14:32:39Z"
id: 1480344
url: "https://286.iteye.com/blog/1480344"
---

在conf/server.xml文件中增加" useBodyEncodingForURI="true"配置  
增加前：

```
<Connector  port="8080" protocol="HTTP/1.1" redirectPort="8443"/>  
```

 增加后：

```
<Connector  port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/>  
```