-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF-8 characters in the CSS sometimes get interpreted as another encoding instead #2039
Comments
But the meta tag comes directly after the opening head tag:
And the inline styles are generated by AngularJS Material at runtime. So I'm not sure that this is the problem. I'll ask Pandaa whether s/he can give us more information (OS, browser, ...). |
I've checked
So it also doesn't use It looks like we have to add (Adding the charset declaration to |
I think I've found another reason why In the
But that doesn't work for
The reason is that I've made this change on my private server and sent an unmodified So there are two possible solutions:
W3C reoommends doing both:
What do you think? |
I think putting |
That's what I have planned to suggest in a PR but I was rather busy this week and hadn't had time yet.
We could do that, but there is a recent proposal to add a generic filter which executes a given command which is exactly what we would need. But I'm not sure how soon it will be available. |
Reported by Pandaa on the wall
The character before "Advanced Search" should be
▸
. Theâ–¸
visible in the screenshot is the result of decoding the UTF-8 bytes as any of several other encodings like Windows code page 1250.I'm guessing that the browser is incorrectly using that encoding because it has not been declared explicitly by the point the
layout.css
file is being parsed.W3.org says the following about declaring the character encoding of CSS:
There is no
@charset
declaration inlayout.css
, but the CSS uses the same encoding as the HTML. Under the assumption that someone who knows how to open the developer tools also keeps their browser up to date, I guess that makes it likely the HTML encoding was not declared properly.There is a
<meta charset="utf-8">
tag in the HTML, but it comes after a long list of inline styles. W3.org says that the declaration should be within the first 1024 bytes:Maybe that is the root cause.
The text was updated successfully, but these errors were encountered: