Views
Replies
Total Likes
The message is old, but the problem is opened and I believe that many people have troubles with getting appropriate encoding in e4x result.
I have excactly same problem like Gokul, only difference is that I am trying to get ISO-8859-2 charset. HttpService deffinition looks like this:
var source:HTTPService = new HTTPService();
source.method = "POST";
source.resultFormat = "e4x";
source.contentType = "text/xml; charset=ISO-8859-2";
source.headers = {"Content-Type": "text/xml; charset=ISO-8859-2"};
So I suppose that everything what can be set is set. But still in result XMLthere are no national chars. I also get correct XML when I request it in browser, but requesting by Flex and HttpService makes problem.
Does anyone have same problem and find out something to handle this?
Views
Replies
Total Likes
AFAIK, "text/xml; charset=ISO-8859-2"; is not supported (I might be wrong though).
The docs only mention these two:
- application/x-www-form-urlencoded (the default)
- application/xml
http://livedocs.adobe.com/flex/3/langref/mx/rpc/http/HTTPService.html#contentType
Views
Replies
Total Likes
Sure, my bad, but this is not an issue, in fact it doesnt metter what I put there i will always get utf-8 encoding
Views
Replies
Total Likes