Display French text using jquery.

Display French text using jquery.

I have a question on JQuery multi-language support. We have to display some French text on the browser(IE 6). The data is read by a java server app from a file and populated in a JSON object and sent to the client (html, jsp, jquery).

When the client receives the data on the callback function to the post call then the data comes corrupted...means the special characters are replaced by ? marks.

Sample code..
 
//client call

$.post("ServiceGateway", {'key':id, 'id' : id, 'pageId' : pageID},

attentionResponse, "json");

 
//server setting column name in JSON - french text in red.
 
String[] colName = {"Paramètres","Reason Type", "Event Type", "Event Date & Time","Resolve"};
 
 
 
//client received
 
function attentionResponse(data) {
// alert("response");
 
//corruped data received.

var config = data.grid;

attentionNeededGrid(config);

var mydata = data.data;

for(var i=0;i<=mydata.length;i++)

jQuery("#AttentionNeeded").jqGrid('addRowData',i+1,mydata[i]);

}

 

We tried encoding the data to UTE-8 format prior to sending response to the client but does not work.

Any info would be appreciated.