Within my CSS stylesheets, you may come across code that resembles the following snippet:
#nav > li::after {
content: " ➻";
}
It's worth noting that ➻ is not an ASCII character, which can make it risky to use in a file without explicitly setting a charset.
So far, I haven't encountered any encoding issues with my CSS stylesheets (likely due to user agents becoming better at recognizing "UTF-8"), but I'm curious if there's a proper way to specify it explicitly.
I attempted the following:
<link rel="stylesheet" type="text/css; charset=UTF-8" href="foo.css"/>
However, it doesn't appear to have any impact, as I tested with an incorrect encoding and the content still appeared correctly.