Problem with output "@charset 'utf-8';" to CSS
See original GitHub issueExample:
main.scss:
@charset 'utf-8';
body {
color: #333;
}
compile to:
body {color:#333}
where is string “@charset ‘utf-8’;” ?
My setup: MacOSX 10.9.3 / Ruby 2.1.2 (Rbenv) / SASS 3.3.7.
Thank you!
Issue Analytics
- State:
- Created 9 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
CSS won't load with UTF-8 encoding
@charset "UTF-8";. use UTF-8 in eclipse as encoding before exporting to WAR. The CSS does not get loaded although it is referencable via ......
Read more >Declaring character encodings in CSS
Quick answer In this case you should use @charset or HTTP headers to declare the encoding. (If your HTML and CSS files use...
Read more >charset - CSS: Cascading Style Sheets - MDN Web Docs
The @charset CSS at-rule specifies the character encoding used in the style sheet ... Invalid, wrong quoting style used */ @charset "UTF-8"; ...
Read more >Statically typed URL creation, fix CSS intermittent encoding ...
So, the problem here was a charset issue because browsers can handle different charsets if you put the information at the top of...
Read more >specifying @charset in CSS bundle - MSDN - Microsoft
Therefore @charset "UTF-8" is midway through my single bundled CSS file ... with @charset "UTF-8"; doesn't feel right, but I may be wrong....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
looks like its not a problem, example: http://sassmeister.com/gist/9537678
if any html-character present in any *.scss file, even like comment, SASS automaticly adding ‘@charset “UTF-8”;’ in compiled .css file.
Sass will only include a
@charset
declaration in the CSS output if there are any non-ASCII characters. CSS is parsed as ASCII by default, so it’s unnecessary if the stylesheet is pure ASCII.