Defining CharSet for static HTML files

半腔热情 提交于 2019-12-05 15:43:35

To fix this charset header issue for static files, you'll need to define charset in app.yaml file:

 - url: /
   static_files: root/create.html
   upload: root/create.html
   mime_type: text/html; charset=UTF-8

Now Content-Type header for static files also correctly contains character set information.

 Content-Type: text/html; charset=UTF-8

Some browser do not parse pages as quickly as possible, if charset information is not included in headers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!