Share via


How to set the JSON encoding to windows-1252

Question

Tuesday, March 29, 2011 9:30 AM

Hello,

I have a problem with a webpage.

Currentely I'm using the following code to extract data from a seperate file using JSON:

 

 

$.ajax({
            type: "POST",
            url: "/testing2.asp?country="+selected_country+"&area="+selected_area+"&period="+selected_period+"&vervoer="+selected_vervoer+"&pagina=start",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",

However when I run my page I get a weird questionmark where character like Ë ahould be.

I thought I could fix thos by changing contentType: "application/json; charset=utf-8", to contentType: "application/json; charset=windows-1252",

but that doesn't work.

How can I get rid of the questionmarks?

 

All replies (1)

Wednesday, June 22, 2011 3:27 AM

hi u can visit this link

http://www.sencha.com/forum/showthread.php?4196-Character-Encoding-in-JSON