Forum Discussion
kitaitoa
2 years agoContributor
Thanks rraghvani
I try this solution:
aqHttpRequest.SetHeader("Accept", "application/json;charset=utf-8");
aqHttpRequest.SetHeader("Accept-Charset", "utf-8");
aqHttpRequest.SetHeader("Content-Type", "application/json;charset=utf-8" );
But, it doesn't handle the encoding and the getHeader of the Content-Type of the response contains only application/json
If I don't set the Content-Type I get a crash with error "HTTP 415 Unsupported Media Type"
Regarding the loss of the json, running this script :
qHttpRequest.SetHeader("Content-Type","application/json; charset=utf-8")
changes the content of the response to "text/html;charset=utf-8"
Related Content
- 2 years agoBrianFixzone
- 4 years agocarlomarchesoni
- 3 years agoPete_W
- 3 years agoStephenOrion
Recent Discussions
- 3 hours agoMW_Didata
- 14 hours agod_gfleetwood92