【问题标题】:Crossrider IE encoding with JSONP带有 JSONP 的 Crossrider IE 编码
【发布时间】:2015-01-14 10:48:34
【问题描述】:

在用户双击页面中的任何单词时出现弹出窗口的扩展中工作

在 FF 和 GC 中运行良好,但在 IE 中出现字符编码问题

我正在使用 JSONP

function PopupGenerate(e,selectedText){
  PopUpMessage(selectedText,waitMessage);
  appAPI.request.get({
  url: WebServiceUrl + encodeURIComponent(selectedText),      
  onSuccess: function(responseString) {
    var response = JSON.parse(responseString);
    if(response.SearchResults == "NoResult")
        {           
             PopUpMessage(selectedText,noResultMessage);
        }
        else
        {   
            PopUpWord(selectedText,response,e);
        }
  },
  onFailure: function(httpCode) {
  PopUpMessage(selectedText,ConnectionErrorMessage);
  },
contentType: 'application/json'
});    
}

那么如何在 IE 中修复它?

【问题讨论】:

    标签: internet-explorer encoding character-encoding crossrider


    【解决方案1】:

    这是 Internet Explorer 中编码字符串的一个已知问题。您可以通过使用 HTML 特殊字符发送文本来解决此问题,您可以使用其中一种在线编码器对其进行编码:

    [披露:我是 Crossrider 的员工]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-02
      • 2010-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-26
      • 1970-01-01
      • 2012-04-22
      相关资源
      最近更新 更多