网页编码 [英] Encoding of the web page
问题描述
我已经使用了一个免费的模板,并将其用作视觉Web开发人员的母版页。
每当我关闭主页面文件并重新打开它,它会询问我的网页编码。标题是选择编码,正文是Visual Web开发人员无法确定此文件的编码,请从下面的列表框中选择一个编码。
我该如何解决?如何从头开始以UTF-8编码保存文件。
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.
推荐答案
尝试将这样的标签放在< head>
元素:
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.
这篇关于网页编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!