internet explorer - Javascript convert data from utf-8 to iso-8859-1 -


I work on a website which is done using all the old ASP 3.0 ISO-8859-1 encoding . I use Yahoo YQL to request data from external websites (XML), but which I request to return to JSON-P (with a callback function as JSON so that I can retrieve data) ).

The problem is facing that the YQL is always returning the encoded data in utf-8, which is bad for me when I want to display any text data received from that query I try. EA, like letters, IE 6 & amp; Encoding does not match since IE 7.

Anyone knows how to recover and correctly display USF-8 data with ISO-8859-1 through JSON-P?

I tried it already, but it does not work. Server-side functions are not an option; function in ASP 3.0 such as utf8_decode is not included.

Thanks

I do not know that this will work, but here's something You can try whatever you want.

A charset attribute in the tag refers to the remote JS file. It definitely works for content that inside the JavaScript file and E.g. Output using document.write .

Is the data defined in that file via JSONP received by a regular ? I do not know. My guess is, maybe not. I can not test now, but if you do, I would be very interested in the result.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -