Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:16:05+00:00 2026-05-31T05:16:05+00:00

My stylesheets contain CSS code similar to the following: #nav > li::after { content:

  • 0

My stylesheets contain CSS code similar to the following:

#nav > li::after {
    content: " ➻";
}

You may notice that ➻ is not an ASCII character, and therefore it’s “dangerous” to include it in a file without specifying a charset.

For now things have been smooth and I’ve never run into encoding issues with CSS stylesheets (mostly because user agents are getting better at guessing “UTF-8”), but I was wondering if there was a right way to explicitly specify it.

I’ve tried this:

<link rel="stylesheet" type="text/css; charset=UTF-8" href="foo.css"/>

But it doesn’t seem to do anything, as I tried to specify a bogus encoding and it still displayed correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:16:06+00:00Added an answer on May 31, 2026 at 5:16 am

    Found that citation that I needed:

    http://www.w3.org/TR/CSS2/syndata.html#charset

    When a style sheet resides in a separate file, user agents must
    observe the following priorities when determining a style sheet’s
    character encoding (from highest priority to lowest):

    1. An HTTP “charset” parameter in a “Content-Type” field (or similar parameters in other protocols)
    2. BOM and/or @charset (see below)
    3. or other metadata from the linking mechanism (if any)
    4. charset of referring style sheet or document (if any)
    5. Assume UTF-8

    So, although @charset "UTF-8"; is relevant, HTTP headers override it. You can specify the charset in a meta tag of your HTML document with <meta charset="utf-8">, which will satisfy #4, and user agents are supposed to fall back to UTF-8 anyways.

    With some of these “glyphs”, it’s important that the end user has at least one font installed that supports it, so keep that in mind while writing your CSS. Not all fonts support all unicode characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently using a method that looks like the following code to add script
I noticed that some stylesheets have something like this: body { font-size: 62.5%/1.2em; }
I have about 100 stylesheets that apply the same style to one document, exactly
I would like to share 2 folders of content ('stylesheets' and 'graphics') between multiple
I am trying to add a css form code . My website uses a
I have the following in the section of my page: <head> <link rel='stylesheet' href='style.css'
I have a element that is set to contain a table element. The table
I have an application that contains this code: <script src=Scripts/jquery-1.4.1.min.js type=text/javascript></script> <script src=Scripts/facebox.js type=text/javascript></script>
I used the code from the following question to insert a YouTube video into
Quick question; I replaced a .css file which I was referencing in html/php that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.