Django base template need to save with utf8-no-BOM format

Django uses the template development, normal html page displayed normally no problem, but using the base template + extends the template appears strange phenomenon, IE display is not normal, the tail more “EY” character, although the view the source code are consistent; chrome in the head of many a row to the other view elements, all head content to move the body. Beginning to solve a headache, the IDE will automatically modify the coding utf8 Each modification was modified back eventually get resolved as read-only encoded directly modify the IDE does not automatically modify like .

Solution: modify Encoding for the base.html basic template for utf8 without BOM format!

本文固定链接: http://www.higis.org/en/2012/09/20/django-template-utf8-no-bom/ | Hi,GIS


该日志由 H.J 于2012年09月20日发表在 Program 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: Django base template need to save with utf8-no-BOM format | Hi,GIS
关键字: ,

Django base template need to save with utf8-no-BOM format:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter