Encoding of the web page

五迷三道 提交于 2020-01-07 02:51:06

问题


I have used a free template and used it as a master page in the visual web developer. Each time I close the master page file and reopen it it will ask me for the encoding of the web page. The title is "Choose an encoding", and body is "Visual web developer was unable to determine the encoding of this file. Please choose an encoding from the list box below". How can I fix this? How can I save the file with UTF-8 encoding from the beginning.


回答1:


Try putting a tag like this inside the <head> element:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

That's how you identify the encoding to browsers. Not sure about the editor you're using.



来源:https://stackoverflow.com/questions/7336448/encoding-of-the-web-page

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