Question: faulty charset?

Hello all.

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?

Best wishes,
-k0nsl


Ref.

  1. http://freebsd.mirror.k0nsl.org/

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.

https://caddyserver.com/docs/mime

1 Like

Ah, yes! That will certainly take care of my problem. Thank you, @acmacalister. My brain has seemingly been at “sleep” today. /grin

[EDIT: yep, confirmed fix.]

Best wishes,
-k0nsl

awesome! It’s Friday, sleepy brains are expected. :grin:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.