Hey all, I've scratched my head all day trying to figure this one out.
I send this request (simplified):
gKey = llHTTPRequest("URL", [HTTP_METHOD, "GET", HTTP_MIMETYPE, "application/x-www-form-urlencoded;charset=utf-8"], "");
http_response(key request_id, integer status, list metadata, string text) {
if (request_id == gKey) {
if (status == 200) {
llOwnerSay(text);
}
}
}
The URL takes me to an API that returns a single string of text
Except... the encoding's all wrong, despite specifying charset=utf-8. I get this response:
ã¢ããªã±ã¼ã·ã§ã³
Instead of:
アプリケーション
This only happens when I'm using the script to access the API. The in-world browser, my own browser, everything else works fine.
Using https://mothereff.in/utf-8 to decode the bad output does result in アプリケーション. ( if you copy/paste it from here anyway https://pastebin.com/yWWL779Q )
Is there any way I could force the API to output its result in utf-8 if HTTP_MIMETYPE doesn't help?