问题描述
我正在尝试使以下德语字符正确显示:ß
I am trying to have the following german character to display correctly: ß
不幸的是,它显示为 ss。我已经尝试按照我在以下位置找到的一些说明进行操作:没有成功。
Unfortunately, it displays as 'ss'. I have tried following some of the directions I found at: How can I properly display German characters in HTML? with no success.
我尝试将meta标签设置为< META HTTP-EQUIV = content-type CONTENT = text / html; charset = utf-8>
以及< meta http-equiv = Content-Type内容= text / html; charset = ISO-8859-1 />
并没有改变。根据该页面上的注释,utf-8可以同时处理任何类型的非ASCII字符。
I tried setting the meta tag to <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
and also to <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
which didn't change anything. According to the notes on that page, utf-8 can handle any kind of non-ASCII characters at the same time.
奇怪的是,其他德语字符(如ü和ö字符显示正常,因此特定于ß字符,而不是实际显示ß,而是显示为ss。
The strange thing is that other German characters such as the ü and ö character display fine, so it is specific to the ß character, and instead of actually displaying the ß, it appears as ss.
如何防止浏览器从将ß更改为ss,而实际上却让它显示ß?
How can I prevent the browser from changing ß to ss and instead actually have it display ß?
编辑:我进行了文本转换:大写在显示 ss而不是ß的行上。一旦我删除了它,它就很棒了!
I had a text-transform:uppercase on the line that was displaying the 'ss' instead of 'ß'. Once I removed that, it worked great!
推荐答案
我也遇到了这个问题。一段时间后,我发现我使用的字体(我认为是Trebuchet MS)不支持ß,这就是为什么将其转换为SS。非常简单,但是我什至没有梦想过这样的解决方案。.
I had this Problem too. I figured out after a while, that my used font (it was Trebuchet MS I think) didnt support ß and thats why it was converted To SS. Quite simple but I wasn't even dreaming of such a solution..
编辑:仅当文本转换$时,该问题才会出现c $ c>设置为
大写
。然后,ß
自动转换为 SS
。
That issue comes up only when text-transform
is set to uppercase
. A ß
is then converted to SS
automatically.
这篇关于如何防止浏览器将ß更改为ss?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!