特殊字符致使jquery-mobile 掛起(firefox控制檯報錯 malformed URI sequence)

同事遇到一個問題,刷新頁面致使頁面掛起,瀏覽器控制檯報錯 malformed URI sequence,jquery

經排查發現是引用jquery-mobile js引發的問題, 有一些中文參數在url中,當頁面刷新後,參數自動轉義出現特殊字符,git

致使頁面掛起。github

問題模擬:瀏覽器

1.4版致使頁面掛起,出現loading圖標一直卡住:post

image

http://demos.jquerymobile.com/1.4.5/theme-default/?%E9url

1.3版正常調試

http://demos.jquerymobile.com/1.3.2/?%E9orm

 

因爲不是本身項目 沒法調試,最終讓同事把參數放入body使用post傳輸解決問題。blog

系統能給遇到此問題的同窗一個參考。get

 

相關參考:

https://github.com/jquery/jquery-mobile/issues/7853

https://github.com/cowboy/jquery-bbq/issues/21

http://stackoverflow.com/questions/18352605/decoding-e9-to-utf8-fails

相關文章
相關標籤/搜索