UTF-8 html without BOM displays strange characters

前端 未结 2 1140
北海茫月
北海茫月 2021-01-11 22:11

I have some HTML which contains some forign characters (€, ó, á). The HTML document is saved as UTF-8 without BOM. When I view the page in the browser the forign characters

2条回答
  •  臣服心动
    2021-01-11 22:56

    Insert in .
    Or set the header Content-Type: text/html;charset=utf-8 on the server-side.

    You can also do add in .htaccess: AddDefaultCharset UTF-8 more info here http://www.askapache.com/htaccess/setting-charset-in-htaccess.html

提交回复
热议问题