---
title: "url传中文参数的问题"
author: "icarusliu"
date: "2008-10-20T09:49:04Z"
tags: []
slug: "url"
draft: false
lastmod: "2008-10-20T09:49:04Z"
id: 255146
url: "https://icarusliu.iteye.com/blog/255146"
---

页面编码假设是"UTF-8",则取得传递参数的时候应该用如下的方法：

String  s=new  String(request.getParameter("xm").getBytes("ISO8859\_1"),"UTF-8");