Within the directory listing handler, the absence of an explicit charset in the content type has led to issues, particularly with directories containing non-ASCII symbols, resulting in broken displays.
Adding charset charset=UTF-8 to the Content-type header fixes this issue.
Within the directory listing handler, the absence of an explicit charset in the content type has led to issues, particularly with directories containing non-ASCII symbols, resulting in broken displays.
Adding charset charset=UTF-8 to the Content-type header fixes this issue.
Alternate Designs
<meta charset="UTF-8">
to https://github.com/crystal-lang/crystal/blob/master/src/http/server/handlers/static_file_handler.htmlserve_static
configBenefits
it works
Possible Drawbacks
Not flexible for non UTF-8 cases.