views:

12

answers:

0

Hello folks,

I have two comboboxes "A" & "B". Combo "B" is populated using jQuery Ajax (dataType:json) when a value in Combo "A" is selected (onchange event).

There are cases where part of the data in "B" can be chinese/international, in which case the data appears as "????" in the browser.

Typically the entire setup is like so:

ERP <---> Servlet <---> JSP <---> Browser

ERP is UTF-8 enabled. I can clearly see the data in chinese in the ERP console. I've dumped the resultant data that passes into the servlet in a file just to check if it's proper. It's perfectly encoded. I've set the contentType for JSPs to UTF-8. Everything's in place.

I've added the necessary contentType in Ajax to "application/json;charset=utf-8". Still no dice.

That leaves the browser. I've used every browser there is and the same issue arises. I've noticed that the browser simply isn't able to understand the charset of the chinese data when populated on-the-fly.

What can possibly be going wrong? Due to security reasons I cannot post the code. I'd be grateful for any sort of advice.

Thanks a heap! ~Sabier