-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Mojibake instead of glyphs #5884
Comments
I'm no longer convinced it's a simple caching issue, based on some observations:
I'd like to explore deferring the loading of the stylesheet to see if this fixes the mojibake. |
After some more investigation, I believe that this is actually an issue of encoding. Adding an encoding preamble to the stylesheet seems to resolve the problem.
Even though we include a meta tag that sets the encoding to I have a branch that modifies our build tooling to automatically prepend this to our stylesheets that I will push for testing. |
Testing Instructions
|
Verified Testathon 9/22/2023 |
Verified in Testathon on 09/22/2023. I followed the instructions, refreshing 10 times in succession and wasn't able to see the mojibake. |
Verified Testathon 9/22/2023 |
Summary
Strange characters are sometimes observed in place of glyphs in Open MCT after a new build is generated.
One theory I have is that for whatever reason there's a mismatch between the unicode characters specified in constants.scss and the unicode characters used in the font files. I suspect that one is being cached by Chrome, and the other is not. When we rebuild our fonts and then deploy a new version this mismatch causes unexpected characters to be rendered in place of our glyphs. This continues until either the cache is completely cleared (and Chrome can cache quite aggressively), or the cached version expires and is eventually replaced by the newer version.
Expected vs Current Behavior
Open MCT glyphs should be rendered, not mojibake.
Steps to Reproduce
Unknown at this stage.
Environment
Impact Check List
The text was updated successfully, but these errors were encountered: