I’m having some type of issue with my FreeBSD mirror[1] and I thought it must be related to charset. But when I checked the headers they show the expected values — nothing unusual, there.
If you visit my mirror linked below you can see the problem “in action”, look for symbols such as this: �.
Do any of you know a solution for this? What could possibly be producing these weird symbols?
I took a look at your mirror. I’m far from an encoding expert, but I assume you are using Caddy to serve static files? Caddy uses Go default UTF8 encoding as opposed to the one BSD website is using ISO-8859-1. Therefore the non breaking are being encoded differently, hence the ‘weird symbols’. That being said you either need the BSD webpage encoded in UTF8 or use the mime middleware in Caddy to change the the encoding for html files in the proper charset. Docs for mime below.