It seems I cannot get UTF-8 encoding to be sent in the response headers. I tried using this to no avail:
resp.setHeader("Content-Encoding", "utf-8");
Does anyone know when is this bug to be fixed or is there a workaround?
References:
Per the w3 reference, Content-Encoding
is for such things as gzip, deflate, compress -- not for "how is Unicode encoded in the body". What you need is e.g.
Content-Type: text/html; charset=utf-8
i.e., the charset
attribute of Content-Type
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With