[英]Symbol appearance is ok on my computer, but different on other
我有 HTML 頁面,並且有 alpha、omega 等符號。為什么我在我的計算機上可以正常運行,但在其他頁面上卻是錯誤的? 是編碼問題還是字體問題?
在我的電腦上:α
其他:╬▒
在您的 web.config 上添加正確的編碼。
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
它也取決於你如何保存你的 asp.net 文件。 如果將其保存為代碼頁 1253(即 alpha -> α 的希臘語)或 UTF-8。 最好將其保存為utf-8並顯示為utf-8
關於全球化https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/hy4kkhe0(v=vs.100)
您在標頭后立即將字符集聲明為:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
對於 utf-8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.