Closed eihli closed 1 year ago
Thanks, that makes sense!
Sorry for the late comment but this was not necessary. You can let it up to the users. F.ex. I have in my themes/lotus/html/base.html
this:
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8"/>
and at the top of my /Users/holyjak/Projects/blog.jakubholy.net/themes/lotus/css/blog.css
:
@charset "UTF-8";
Though you could argue that in 2022 it might make sense to force utf8 on everybody.
PS: Notice that the "serve-fast" functionality is broken wrt utf8 because Ring injects a piece of code before the meta
, making it thus ignored. Perhaps that is what @eihli run into?
Without charset=utf-8 in the Content-Type header, some characters get incorrectly. I was seeing question marks. UTF-8 is quite ubiquitous so I don't think it's worth detecting this by way of parsing the meta tag out of a theme.
Without:
With: