英镑英镑符号在商店中显示为未知字符

发布于 2024-09-16 06:25:28 字数 296 浏览 11 评论 0原文

对于我的商店中每次出现的英镑符号 (£),我都会看到一个“?”黑色菱形中的问号符号。 谷歌搜索得到了字符集的建议 - 我的设置为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

So尛奶瓶 2024-09-23 06:25:28

您不能将 £ 替换为 £ (或 OS commerce 中的 &pound;

查看 HTML 标记的源代码并粘贴结果 - 操作系统商务可能会将其转变为服务器端,这意味着添加元标记将毫无价值。

Can you not replace £ with &pound; (or &amp;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.

只有一腔孤勇 2024-09-23 06:25:28

尝试使用 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.

东北女汉子 2024-09-23 06:25:28

问题

£ 

在 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'

离鸿 2024-09-23 06:25:28

我们在网站(我们自己的网站和其他知名网站的网站)上也遇到了类似的问题,其中英镑 (£) 符号显示为字母 J。我们还注意到,同时文本在不应该的情况下却是粗体和倾斜的曾经是。

经过大量调查后发现,我们遇到的大部分机器上安装的 Helvetica 字体都有问题,有两种可能的解决方案:

  1. 如果您可以控制机器,请删除“Helvetica Bold Oblique”、“Helvetica” Bold”和“Helvetica Oblique”字体(“Helvetica Regular”似乎工作正常)。
  2. 在您的应用程序/网站中使用不同的字体。

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:

  1. If you have control over the machines delete the "Helvetica Bold Oblique", "Helvetica Bold" and "Helvetica Oblique" fonts ("Helvetica Regular" seems to work fine).
  2. Use a different font in your applications/websites.
时光病人 2024-09-23 06:25:28

添加以下行来简单地解决此问题

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

之间

您可以通过在 html 代码的 标记

。我建议将其放置在 标记之后。

我已经测试过它并且有效。

You can simply solve this problem by putting following line:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文