英镑英镑符号在商店中显示为未知字符
对于我的商店中每次出现的英镑符号 (£),我都会看到一个“?”黑色菱形中的问号符号。 谷歌搜索得到了字符集的建议 - 我的设置为 utf-8 如下...
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
我相信该商店最初是在 Os commerce 中建立的。在货币表中,我使用了 $pound 的 ascii 代码;而不是 £ 符号,但这似乎没有影响。
任何建议都会很棒
干杯
For every occurrence of the pound symbol (£) in my store, I am instead seeing a '?' question mark symbol in a black diamond.
Googling has resulted in suggestions of charset - mine is set as utf-8 as below...
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
I believe the store was origonally set up in Os commerce. In the currencies table I have used the ascii code of $pound; instead of the £ symbol but again this seems to have no affect.
Any suggestions would be great
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您不能将 £ 替换为
£
(或 OS commerce 中的£
)查看 HTML 标记的源代码并粘贴结果 - 操作系统商务可能会将其转变为服务器端,这意味着添加元标记将毫无价值。
Can you not replace £ with
£
(or&pound;
in OS commerce)View to source code of the HTML markup and paste the result - OS commerce could be transforming it server-side which would mean adding the meta tag would be worthless.
尝试使用 HTML 实体:
不确定将其插入的确切位置,但如果它允许这样的 HTML 字符,那么在大多数情况下应该可以解决问题。
Try using the HTML entity:
Not sure exactly where you're plugging it in, but that should do the trick for most situations if it allows HTML characters like that.
问题
在 osCommerce 中使用或 的
是纯文本电子邮件不会显示井号,而只显示上面的代码。
解决方法是在管理/本地化/货币的“左侧符号”条目中使用英镑或英镑。
但是 osCommerce 不允许您在 GBP 后面添加空格,要解决此问题,请使用 phpMyAdmin,在名为“货币”的表中名为“symbol_left”的列中输入 GBP 后面的空格。
这给了我:我的商品详情和纯文本电子邮件中的价格为 9.40 英镑。
或者,对于“9.40 Pounds”,将上述方法应用于“symbol to the right”和“symbol_right”,在值“Pounds”之前添加一个空格
The problem with using
or
in osCommerce is that plain text emails won't show the pound symbol and just show the codes above.
A work around is to use GBP or UK Pound in the 'symbol to the left' entry in Admin / Localization / Currencies.
But osCommerce won't allow you to put a space after the GBP, to solve this use phpMyAdmin, enter the space after GBP in the table called currencies, in the column called symbol_left.
This gives me: GBP 9.40 in my store listings, and in my plain text emails.
Alternatively for '9.40 Pounds' ,apply the above method to 'symbol to the right' and 'symbol_right' adding a space before the value 'Pounds'
我们在网站(我们自己的网站和其他知名网站的网站)上也遇到了类似的问题,其中英镑 (£) 符号显示为字母 J。我们还注意到,同时文本在不应该的情况下却是粗体和倾斜的曾经是。
经过大量调查后发现,我们遇到的大部分机器上安装的 Helvetica 字体都有问题,有两种可能的解决方案:
We had a similar issue with websites (our own and one from other well established websites) where the pound (£) symbol showed as a letter J. We also noticed that at the same time the text was bold and oblique when it shouldn't have been.
After much investigation it turned out that much of the machines we came across had something wrong with the Helvetica font installed on the machines, and there are two possible solutions:
添加以下行来简单地解决此问题
之间
您可以通过在 html 代码的
和
标记
。我建议将其放置在
标记之后。
我已经测试过它并且有效。
You can simply solve this problem by putting following line:
between
<head>
and</head>
tags of your html code.I recommend it should be placed immediately after
<head>
tag.I have tested it and it works.