简体   繁体   中英

forcing compilation Jade partials with utf8 charset in Gulp

How to force Jade files to be compiled to HTML utf8 encoding?.

I am using Gulp. I have multiple templates that are included (using AngularJS) into index.html , so, the meta tag

head
  meta(content='text/html', charset='utf-8')

is only included in index.jade and here all is rendering fine, but other templates are rendering special characters like á, é, í, ó, ú with symbol.

What I need to do for avoid this behavior?

尝试使用Notepad ++检查*.jade文件,并将编码更改为UTF-8(无BOM)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM