已损坏的重音字符

时间:2015-11-30 20:32:06

标签: javascript jquery ajax utf-8

此网址的响应日期包含已损坏的重音字符。为什么?提琴手正确地展示了它们!我想这个问题是由UTF字符处理错误引起的。通过我,jQuery还是IE?不幸的是,我不明白UTF数据处理背后的原理!我有另一个返回JSON数据的查询。这很好用!

该代码仅适用于IE!不在Chrome中,也不在Firefox中。这是CORS的问题吗?有人知道解决方法吗?

SELECT (All cid, mid with 1 subscription) as SingleSubs
WHERE NOT EXISTS (All customers other than SingleSubs.cid with 1 subscription)

以下是结果:

在console.log中,特殊字符的显示方式与此处显示的不同。例如,Programa(Programação)显示为ProgramaxEFxBFxBF等。

console.log

显示的结果
var urlMag = 'http://www.tvmagazine.com.br/guia/programacao,NET,0';
$.ajax({
    url: urlMag,
    context: {},
    success: function(data) {
    console.log("success");
        },
    error: function(e) {
        console.log("error: " + e.responseText);
        }
    })
    .done(function( data, textStatus, jqXHR ) {
            console.log("done: " + data)
    });

textArea

中显示的结果
<!DOCTYPE html>    
<html lang="pt-br" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">    
<head>    

<!-- Meta Tags -->    
<link rel="canonical" href="http://www.tvmagazine.com.br/guia/programacao,NET,0" />    
<meta http-equiv="Cache-Control" content="no-cache, no-store" />    
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />    
<meta http-equiv="Content-Language" content="pt-br" />    
<meta http-equiv="Pragma" content="no-cache" />    
<meta http-equiv="X-UA-Compatible" content="IE=edge" />    
<meta name="author" content="TV Magazine" />    
<meta name="created" content="01/12/2015 07:23:36" />    
<meta property="fb:app_id" content="85553650775" />    
<meta property="fb:page_id" content="146944948751407" />    
<meta name="keywords" content="Guia de Programa, BBB, TV, televis cabo,
por assinatura, programa, guia, filme, se, seriado, m, variedades,
ero, novela, f, notas, jornalismo, informa, nota,
entretenimento, NET, SKY, TVA, DIRECTV, Telefa, Vivo, Globo, SBT, Record, S

Fiddler Web Debugger显示的结果

<!DOCTYPE html>    
<html lang="pt-br" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">    
<head>

<!-- Meta Tags -->    
<link rel="canonical" href="http://www.tvmagazine.com.br/guia/programacao,NET,0" />    
<meta http-equiv="Cache-Control" content="no-cache, no-store" />    
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />    
<meta http-equiv="Content-Language" content="pt-br" />    
<meta http-equiv="Pragma" content="no-cache" />    
<meta http-equiv="X-UA-Compatible" content="IE=edge" />    
<meta name="author" content="TV Magazine" />    
<meta name="created" content="01/12/2015 07:23:36" />    
<meta property="fb:app_id" content="85553650775" />    
<meta property="fb:page_id" content="146944948751407" />    
<meta name="keywords" content="Guia de Programa�, BBB, TV, televis� cabo, por assinatura, programa�, guia, filme, s�e, seriado, m�, variedades, er�o, novela, f�, not�as, jornalismo, informa�, not�a, entretenimento, NET, SKY, TVA, DIRECTV, Telef�a, Vivo, Globo, SBT, Record, SporTV, Big Brother, HBO, Telecine, ESPN, Band, PFC, Premiere, PPV, programa�, f�, youtube, v�o, v�os, widget, webslice, pay-per-view" />    
<meta property="og:article:author" content="TV Magazine" />    
<meta property="og:description" content="Guia de Programa� da NET - TV Magazine. A TV Magazine �ais completo site sobre televis�do Brasil. Aqui voc�ncontra not�as, um completo guia de programa�, f� de discuss� v�os e muito mais." />    
<meta property="og:url" content="http://www.tvmagazine.com.br/guia/programacao,NET,0" />     
<meta property="og:image" content="http://www.tvmagazine.com.br/imagens/png/touch_icon.png"/>    
<meta property="og:locale" content="pt_BR" />    
<meta property="og:site_name" content="TV Magazine" />    

0 个答案:

没有答案