从客户端回调到服务端出现乱码问题
我使用的是以下语句做为局部刷新
<asp:ScriptManager ID= "ScriptManager1 " runat= "server " AsyncPostBackTimeout= "36000 ">
</asp:ScriptManager>
<asp:UpdatePanel ID= "UpdatePanel3 " runat= "server ">
<ContentTemplate>
<asp:TextBox ID= "TB_Editor " runat= "server "> </asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
但是回调给服务端时获取TB_Editor的中文值是乱码,请问高手怎样解决这个问题啊?
------解决方案--------------------编码要使用utf-8
在web config加上
<globalization
culture= " "
fileEncoding= " "
requestEncoding= "utf-8 "
responseEncoding= "utf-8 "
uiCulture= " " />
------解决方案--------------------编辑的地方全部用ut8不会出问题的
------解决方案-------------------- <meta http-equiv= "Content-Type " content= "text/html; charset=utf-8 " />
44看