doabit / semantic-ui-sass

Semantic UI, converted to Sass and ready to drop into Rails & Compass.
MIT License
1.15k stars 190 forks source link

Invalid US-ASCII character #116

Closed PapsOu closed 6 years ago

PapsOu commented 6 years ago

When building scss with a Symfony 3 project and assetic, the build fail because of missing @charset "UTF-8"; in .scss files that uses UTF-8 chars.

[error] An error occurred while running:
'/usr/bin/ruby' '/usr/local/bin/sass' '--load-path' '/var/www/html/src/PapsOu/LibBundle/Resources/semantic-ui' '--scss' '--load-path' '/var/www/html/app/../web' '--cache-location' '/var/www/html/var/cache/dev' '/tmp/assetic_sass9FopEG'

Error Output:
Error: Invalid US-ASCII character "\xE2"
        on line 561 of /var/www/html/src/PapsOu/LibBundle/Resources/semantic-ui/scss/elements/_list.scss
        from line 10 of /var/www/html/src/PapsOu/LibBundle/Resources/semantic-ui/scss/elements/_all.scss
        from line 2 of /tmp/assetic_sass9FopEG
  Use --trace for backtrace.

Input:
@import 'scss/globals/all';
@import 'scss/elements/all';
@import 'scss/collections/all';
@import 'scss/views/all';
@import 'scss/modules/all';

Is it possible that you add @charset "UTF-8"; in every files to solve this kind of problem ?

doabit commented 6 years ago

Sorry, the gem should work for rails, i haven't tested it for other environments. could you show me your example codes?

PapsOu commented 6 years ago

Woops, it seems that your repo is not responsible for this problem. See https://github.com/aniftyco/semantic-ui-sass/issues/2