討論 » Greasy Fork 回應

Sometimes Wrong Arrow Rendered due to CSS file charset

§
發表於:2023-06-25

Problem

Screenshot: img

Correct:

nav .with-submenu>a:after {
    content: " ▾"
}

Incorrect:

nav .with-submenu>a:after {
    content: " â–¾"
}

Sometimes it may happen. When I opened another tab to load the same page, issue gone. For the same tab, reload would not help as the css file is cached.

I guess it is because the charset of the CSS file.

Suggested Solution

Suggest to change " ▾" to " \25be"

§
發表於:2023-06-25
編輯:2023-06-25

I have the same issue. The symbol is broken sometimes. There was also another weird css issue: on a user page a scripts ratings are shifted to the right, but it's also rare, is also being fixed by refreshing the page, and I couldn't figure out why it's happening so I wasn't bothered reporting it

§
發表於:2023-09-01

I made a trial script to help fix the issue. Need time to see the result.

https://greasyfork.org/en/scripts/474345-greasy-fork-fix-wrong-charset-css

JasonBarnabe管理員
§
發表於:2023-11-04

This should be fixed now. It was a missing directive in the nginx config. I believe browsers try to automatically detect/fix issues like this, which may explain why it only happened sometimes.

發表回覆

登入以回復