Expand my Community achievements bar.

HTTPService

Avatar

Former Community Member
var params:Object = new Object();

params.Fld1 = Fld1.text; //the Fld.text is åäö

params.Fld2 = Fld2.text; //the Fld.text is ÅÄÖ



var request:HTTPService = new HTTPService();

request.method = "POST";

request.send(params);



When recieving the params in the server-function the Fld1 is
translated to UTF-8 (åäö) and is
ok.

but the Fld2 is translated to samething else
(Ã?Ã?Ã?) and is not UTF-8.





1 Reply

Avatar

Former Community Member
Problem solved!

In bug report SDK-13922 there are a workaround



var customHeaders:Object = new Object();

customHeaders["Content-Type"] =
"application/x-www-form-urlencoded; charset=UTF-8";

_httpService.headers = customHeaders;