2010-12-15 58 views
0

是否有Unicode字符(泰國)的任何JQuery自動完成。 我已經與this和我的asp.netJQuery自動完成unicode字符

代碼
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";實際上正確的值是。 所以我不知道客戶端編碼是錯誤的還是服務器端編碼錯誤?

請幫助我

+0

不,正確的URL值實際上是'Q =「%E0% b8%93「;',因爲ณ需要[URL編碼](http://en.wikipedia.org/wiki/Percent-encoding)。 – 2010-12-15 03:35:48

+0

@Matt Ball So如何從「%e0%b8%93」改變爲ณ? – kst 2010-12-15 03:39:59

+0

在什麼情況下? C#? – 2010-12-15 03:40:52

回答

0

當u要UTF8字符串只是

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

,並設置頁面編碼傳送到UTF8