浏览器添加了奇怪的字符而不是 html
browser adds strange characters instead of html
我在 mac 和所有浏览器中使用 textedit:Safari、Firefox 和 Chrome。我收到奇怪的字符而不是引号。我的浏览器设置为 UTF 编码,我的 textedit 是纯文本模式。
确保将文件保存为 UTF-8:
TextEdit > Preferences... > Open and Save,并确保 Save As 设置为 "Unicode (UTF-8)"
同时在 html 页面中指定字符集,方法是添加:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
标签之间。
我在 mac 和所有浏览器中使用 textedit:Safari、Firefox 和 Chrome。我收到奇怪的字符而不是引号。我的浏览器设置为 UTF 编码,我的 textedit 是纯文本模式。
确保将文件保存为 UTF-8: TextEdit > Preferences... > Open and Save,并确保 Save As 设置为 "Unicode (UTF-8)"
同时在 html 页面中指定字符集,方法是添加:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
标签之间。