搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Incorrect text encoding in <i> tegs

  • 15 个回答
  • 4 人有此问题
  • 5 次查看
  • 最后回复者为 AlexeyS

more options

Hello. I see strange bug: text in CP1251 encoding (Russian) in tags <i></i> looks in incorrect encoding (strange symbols). All other text on the page looks fine, but the text in <i></i> tags is unreadable. Firefox 15.0.1, Windows XP. Please help to correct this bug.

Hello. I see strange bug: text in CP1251 encoding (Russian) in tags &lt;i&gt;&lt;/i&gt; looks in incorrect encoding (strange symbols). All other text on the page looks fine, but the text in &lt;i&gt;&lt;/i&gt; tags is unreadable. Firefox 15.0.1, Windows XP. Please help to correct this bug.

由AlexeyS于修改

所有回复 (15)

more options

This can be a problem with the font that is used to display the text.

You can use this extension to see which fonts are used for selected text.

more options

Any fonts. For example Times new roman, Tahoma, Verdana. I have tested it on different fonts. But only in <i> tags.

more options

More strange: bold-italic text looks fine (for example in tags <b><i></i></b>) but in <i></i> looks incorrect.

more options

This screen-shot demonstrate my bug (attached).

more options

Sorry, I have tested more and I see this bug not on all fonts. I see this bug for example on Arial, Times, Verdana. But I do not see this bug for example on Tahoma, Courier, Georgia. It's very strange bug.

more options

Is there a URL to demonstrate this problem?

Are you overriding the fonts selected in the page? That setting is here:

orange Firefox button or classic Tools menu > Options > Content

Fonts & Colors section > "Advanced" button > Allow pages to choose their own fonts -- it is checked by default

more options

Any site with Russian italic text. As example you can see a local html file with content like this: Русский текст ( <i>Русский текст</i> ). But in CP1251 encoding (I think encoding is important).

"Allow pages to choose their own fonts" is checked in my Firefox.

And Firefox 15 for Linux have not this bug, but for Windows have this bug.

由AlexeyS于修改

more options

Did you check which font Firefox uses in both cases?
Is that the same font?

This issue can happen if an 8 bit encoding is used and the text in the italic tags uses another (possibly Unicode) encoding.
You can use the above mentioned extension and select some text.
Then use the entry in the right-click context menu to check which font is used.

more options

I have tested with that extension. For Arial font it use Arial, for Times New Roman - Times New Roman etc. All fonts are good. I make simple html test file with text in different fonts and I see some fonts is readable in italic style, but some fonts is unreadable in italic.

For example URL you can see this: http://www.webmoney.ru/rus/about/demo/download.shtml
Some text on this page is good readable, but some (italic) is unreadable.

由AlexeyS于修改

more options

On Windows 7, I'm getting the bold and italic text on that page in Verdana. Here are Fx15 and IE8.

Oh, but wait, if I change the character encoding from UTF-8 to Windows-1251, it's a mess. So the moral of that story is, use UTF-8 for that page, which is in the content-type header sent to me by the server.

more options

Now I see this bug in UTF-8 encoding too. It is encoding independent bug. Your screenshot on my system looks different. See my new screenshot.

more options

I see the Verdana font used and that is verified by the Inspector.

  • body → Verdana,Helvetica,sans-serif

由cor-el于修改

more options

You can see that yours screenshot is different to my. On your screenshot all text readable. On my some part of Russian text is readable but some unreadable. Italic text is unreadable.

more options

If that italic text is using the Arial font then it is possible that the italic Arial font is corrupted.

You can try different default fonts and temporarily disable website fonts to test the selected default font.

  • Tools > Options > Content : Fonts & Colors > Advanced
  • [ ] "Allow pages to choose their own fonts, instead of my selections above"
more options

I have created simple html test file. In this file same text in some different fonts. Content of this file see on new screenshot. And I open this file in Firefox. All text in Arial, Verdana and Times New Roman fonts is unreadable. But text in Courier New, Tahoma and Georgia fonts is readable.