search

Home  >  Q&A  >  body text

html5 - There is a Chinese error when rudy compiles sass

When writing sass in webstorm, if there are Chinese comments, an Invalid GBK character "xE5" error will appear.

After searching several times, the solution mainly involves modifying two places.

The first one says to add this code to engine.rb Encoding.default_external = Encoding.find('UTF-8');

The second one says to write @charset "utf-8";

at the beginning of the scss file.

However, both are added. . But it still reports an error. .

Is there any good way to solve this problem?

女神的闺蜜爱上我女神的闺蜜爱上我2733 days ago658

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-07 09:26:47

    Create a new version of your sass document using a Unicode UTF-8 file editor, such as Notepad++, then paste all the original document contents into the new document, save it and try using this new document.
    Remember to check/change the settings under WebStorm before trying, File --> Settings --> File Encodings to UTF-8

    reply
    0
  • Cancelreply