html5 - There is a Chinese error when rudy compiles sass
女神的闺蜜爱上我
女神的闺蜜爱上我 2017-06-07 09:24:47
0
1
657

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?

女神的闺蜜爱上我
女神的闺蜜爱上我

reply all(1)
巴扎黑

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template