JQuery自动完成unicode字符

时间:2010-12-15 03:32:06

标签: asp.net unicode urlencode jquery-autocomplete

是否有任何用于Unicode字符(泰语)的JQuery自动完成功能。 我已经使用this和我的asp.net代码

protected void Page_Load(object sender, EventArgs e)
{
    var q = Server.UrlEncode(Request.QueryString["q"]);
    Response.Write(q);
}

网址为http://localhost:2286/customerauto.aspx?q=%E0%B8%93

我得到q="%e0%b8%93";实际上正确的值是。 所以我不知道客户端编码是错误的还是服务器端编码错了?

请帮帮我

1 个答案:

答案 0 :(得分:0)

当你想转移UTF8字符串时

Response.Write("this string represent UTF8");

并将页面编码设置为UTF8