My website has pages and other content with UTF-8 encoding. For HTML, setting the encoding in a meta tag is no problem. However, I also have raw text files with UTF-8 encoding that aren't displayed correctly, such as
⨯ appearing as
Ã—. I've considered adding a byte-order mark at the start of such files, but I'd prefer not to since they aren't always well supported. I followed the instructions in this other question, but it had no effect. This is the HTTP response header:
HTTP/1.1 200 OK Date: Sat, 12 Aug 2017 15:41:04 GMT Server: Apache/2.4.10 (Debian) Last-Modified: Wed, 09 Aug 2017 19:24:33 GMT ETag: "c04c-5565707a34966" Accept-Ranges: bytes Content-Length: 49228 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive
I was hoping to see
Content-Type: text/plain; charset=utf-8. How can I get reliable UTF-8 encoding for these URIs?