【问题标题】:JQuery autocomplete for unicode characterUnicode字符的JQuery自动完成
【发布时间】:2010-12-15 03:32:05
【问题描述】:

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"; 实际上正确的值是 。 所以我不知道是客户端编码错误还是服务器端编码错误?

请帮帮我

【问题讨论】:

  • 不,正确的URL值其实是q="%e0%b8%93";,因为ณ需要是URL encoded
  • @Matt Ball 那么如何从“%e0%b8%93”更改为ณ?
  • 您是否正在使用 Internet Explorer 进行测试?如果是这样,请阅读this question
  • ...否则,请阅读this question

标签: asp.net unicode urlencode jquery-autocomplete


【解决方案1】:

当你只想传输 UTF8 字符串时

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

并将页面编码设置为 UTF8

【讨论】:

    猜你喜欢
    • 2021-10-20
    • 2017-02-08
    • 1970-01-01
    • 2013-01-08
    • 1970-01-01
    • 2011-10-12
    • 2014-08-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多