javascript - How do I handle this response from YQL -


in request yql (select * html url="...") got following response:

callback({     "query":         {"count":"1","created":"2011-05-09t23:29:05z","lang":"en-us"      }, "results": ["<body>... we\ufffdll call mr ...</body>"] } 

this yql console page. when type sequence firebug (even on yql's page) get:

... we�ll call mr ... 

what doing wrong? yql's site in bad encoding? there way convert symbols ascii equivalent?

btw isn't site it's not can change meta charset on site

maybe answers these might better answer:

  1. what character expecting @ place?
  2. can post url you're scraping?
  3. is character on page or getting mangled when picked yql?

update

you might want check out charset option in where clause of yql query - i'm not entirely sure looks forces yql engine use specified charset when parsing page. perhaps setting utf-8 solve problem.

for example,

select * html url = 'http://google.com' , charset='utf-8' 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -