【ASP.NET】解决HyperLink的NavigateUrl显示不正确的问题

1.更改webconfig

<configuration>
<system.web>
<globalization   requestEncoding="GB2312"   responseEncoding="GB2312"   uiCulture="zh-CN"     culture="zh-CN" fileEncoding="GB2312"   />
</system.web>
</configuration> 

2.设置Encode
aHyperLink.NavigateUrl=HttpUtility.UrlEncode("汉字",   System.Text.Encoding.GetEncoding("GB2312"));