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?
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