首页 > Web开发 > 详细

编译sass,遇到报错error style.scss (Line 3: Invalid GBK character "\xE5")

时间:2016-09-27 20:08:19      阅读:3271      评论:0      收藏:0      [点我收藏+]

今天学习sass,写了一行中文注释,结果却遇到了报错:

1 cmd.exe /D /C call C:/Ruby23-x64/bin/scss.bat --no-cache --update style.scss:style.css
2       error style.scss (Line 3: Invalid GBK character "\xE5")
3 
4 Process finished with exit code 1

以前在公司使用的mac没用遇到这种问题,当使用windows 7开发是遇到了这个问题。

在github中找到了答案,现在记录在这里:

 

技术分享

在sass文件开头写上:

@charset "utf-8";

 

附上github链接:https://github.com/imathis/octopress/issues/232

  

编译sass,遇到报错error style.scss (Line 3: Invalid GBK character "\xE5")

原文:http://www.cnblogs.com/zhiyingzhou/p/5913997.html

(3)
(9)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!