简体   繁体   English

编码问题

[英]encoding problem

In my web page a hyphen symbol shows up as \\–. 在我的网页中,连字符符号显示为“ \\”。 I don't know how to resolve this problem, can you help me? 我不知道如何解决此问题,您能帮我吗?

Check if <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> is in the head section of your HTML. 检查<meta http-equiv="Content-Type" content="text/html; charset=utf-8">是否在HTML的头部。 Also I think you're speaking about a dash, not hyphen because hyphen is plain ASCII, you could also try using &mdash; 另外,我认为您是在说破折号,而不是连字符,因为连字符是纯ASCII,您也可以尝试使用&mdash; HTML entity instead. HTML实体代替。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM