---
title: "IE6下URL有中文的解决方案"
author: "lshh83"
date: "2009-02-20T10:54:30Z"
tags: ["Firefox", "Java", "Web", "浏览器"]
categories: ["非技术"]
slug: "ie6-url"
draft: false
lastmod: "2009-02-20T11:16:18Z"
id: 335872
url: "https://lshh83.iteye.com/blog/335872"
---

在web开发中最头痛的问题就是各个浏览器不兼容，其中IE6更为严重，下面就说下在开发中遇到的一个小问题. \[code="java"] [编辑](admin/thresholds/index.htm?groupName=%24%7Bgroup%5B0%5D%7D) \[/code] 当groupName的值为中文时，在firefox和ie7下都是没有错误的，但在ie6下点击编辑时会没有反应。。。。。。 我的解决方案是： \[code="java"] [编辑](javascript:void%280%29;) \[/code] js方法如下: \[code="java"] function update(groupName){ groupName = encodeURI(groupName); document.allGroups.action="admin/thresholds/index.htm?groupName="+groupName; document.allGroups.submit(); } \[/code]