---
title: "传递中文参数"
author: "pavel"
date: "2012-07-27T11:12:14Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2012-07-27T11:12:14Z"
id: 1608804
url: "https://pavel.iteye.com/blog/1608804"
---

传递：

URLEncoder.encode("少地方", "UTF-8");

接收：

URLDecoder.decode(new String(request.getParameter("username").getBytes("ISO8859-1"),"UTF-8"),"UTF-8")