---
title: "关于struts2中s:url中文参数乱码的问题"
author: "linsl"
date: "2010-12-22T15:35:07Z"
tags: []
categories: ["企业架构"]
slug: "struts2-s-url"
draft: false
lastmod: "2010-12-22T15:35:53Z"
id: 849405
url: "https://linsl.iteye.com/blog/849405"
---

在用struts2中

 

&lt;s:url&gt;

&lt;s:param&gt;&lt;s:property value=""/&gt;&lt;/s:param&gt;

&lt;/s:url&gt;

 

传中文参数时，会有乱码问题，看了网上有的用过滤器，有的设置tomcat的URIEncoding="UTF-8"的方法，最近试到一个方法,就是对

 

&lt;s:param&gt;&lt;s:property value=""/&gt;&lt;/s:param&gt;

 

中的**&lt;s:property value=""/&gt;添加escape="false**"属性。