I have created a small test page using Sencha Touch, OpenLayers and I am recieving WMS/WFS data from a GeoServer.
I have set the encoding on my HTML page to UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I pull some WFS data from my GeoServer using the following statement:
var post = new OpenLayers.Request.POST({
url: 'dataprovider.ashx',
data: ...,
headers: {
"Content-Type": "text/xml;charset=utf-8"
},
callback: function (response) {
...
},
});
Which I believe should give me the requested data encoded as UTF-8.
Using an IPhone 4 (IOS 4) and a Samsung Galaxy Tab 10.1 (Android 3.1) it works just fine.
My problem is: Using a device with Android 2.2, I get data back in a different encoding.
One of the words I expect to recieve is Høj, but I recieve Høj (ANSI).
Using FireFox and Chrome I know how to debug the response from the GeoServer, but I don't know how to debug the phones or tablets.
Why is the encoding wrong on Android 2.2?
UPDATED: The problem seems to be related to devices using Android 2.2. A HTC Legend, a Samsung Galaxy SII and a Samsung Galaxy Tab 7 is having the problem - all running Android 2.2.