return RedirectToAction中文居然出现乱码
直接看语句:
1. return RedirectToAction("../Beisen/BSP/Metadata/GlobalConstDict/ListGlobalDict?name=" + Name + "&shortName=" + ShortName + "&code=" + Code + "&type=" + TypeName + "&statue=" + Statue + "&page=" + Page );
2. return Redirect("../Beisen/BSP/Metadata/GlobalConstDict/ListGlobalDict?name=" + Name + "&shortName=" + ShortName + "&code=" + Code + "&type=" + TypeName + "&statue=" + Statue + "&page=" + Page);
上面写法1,传递中文会出现乱码,后来改成写法2,中文才可以正常显示。真是奇怪。
致力于SharePoint开发.
QQ:28748451.