1
試圖通過所有文件在Linux操作系統Ubuntu內部錯誤:無效的UTF-8 - 薩斯&咕嘟咕嘟
[email protected]:/var/www/beta.norsemanfc.co.uk$ gulp sass
[14:43:26] Using gulpfile /var/www/beta.norsemanfc.co.uk/gulpfile.js
[14:43:26] Starting 'sass'...
[14:43:27] gulp-notify: [Compile Error] frontend/sass/style.scss
Internal Error: Invalid UTF-8
[14:43:27] Finished 'sass' after 547 ms
搜索運行gulp sass
時,我得到了下面的錯誤/任何特殊字符的文件夾沒有返回。
[email protected]:/var/www/beta.norsemanfc.co.uk$ find ./* -iregex '.*/.*[èö].*' -print
否則,如果我在文件開始刪除@import它就會失敗的@include邊界盒大小;因爲這是一個變量從susy
所以當然,我怎麼能得到本地運行sass?
更新
[email protected]:/var/www/beta.norsemanfc.co.uk/frontend/sass$ find ./* | xargs grep -i '.*/.*[èö].*'
grep: ./fonts: Is a directory
grep: ./fonts/helvetica-neue: Is a directory
grep: ./modules: Is a directory
grep: ./modules/form: Is a directory
grep: ./pages: Is a directory
grep: ./plugins: Is a directory
grep: ./susy: Is a directory
grep: ./susy/susy: Is a directory
grep: ./susy/susy/language: Is a directory
grep: ./susy/susy/language/susy: Is a directory
grep: ./susy/susy/language/susyone: Is a directory
grep: ./susy/susy/su: Is a directory
grep: ./susy/susy/output: Is a directory
grep: ./susy/susy/output/support: Is a directory
grep: ./susy/susy/output/float: Is a directory
grep: ./susy/susy/output/shared: Is a directory
注:類似的問題:Error "Invalid UTF-8" when compiling sass with @import 這是通過從路徑移除特殊的字符,但是我所有的文件夾是英語和一直都是固定的。
嘗試用「六-b」打開CSS文件中的二進制模式,然後執行「設置列表」顯示非打印字符。此外,您的find命令正在搜索不包含內容的文件名,請嘗試以下操作:find ./* | xargs grep -i'。* /。* [èö]。*' –
乾杯路易斯,一套好的清單沒有顯示出任何平常我不相信的東西。 '^ I^Itoggle:右上角,^ M $'例如。很多'^ I'和'^ M $'。 我將用新發現更新問題:) –
css內容怎麼樣?那裏有任何非ASCII字符? –