---
title: "web乱码调整"
author: "fancool"
date: "2009-10-28T22:32:46Z"
tags: []
slug: "web"
draft: false
lastmod: "2009-10-28T22:32:46Z"
id: 505985
url: "https://fancool.iteye.com/blog/505985"
---

服务端获取:

```java
String value = URLDecoder.decode(request.getParameter("test1Value"),"UTF-8");
```


客服端发送:

```html
location.href = "<%=path%>/test1.do?test1Value="+encodeURI(encodeURI("中国人"));
```