4

I have a problem on Firefox. As it is already said in the title, some Unicode characters are replaced by weird squares with numbers inside. The thing is that it's only the case on Firefox - not on Open Office, not on Opera.

For example, if I look inside the little box at the bottom of this wikipedia page, I have a different outcome with Firefox and Opera.

What should I do ?

I already followed the advices on these two other threads about a similar problem ("Why only some unicode characters are visible on Firefox?" and "Why does Firefox not render some characters?") ; sadly, that wasn't enough : I already have Arial installed on my computer as well as on Firefox itself, and I also installed Code2000 ; that doesn't change anything. My Firefox settings also seem good.

So where's the problem ?

Thank you already for your help !

Update : I also installed DejaVu and DejaVuLGC, that didn't change anything. In fact, I can force Firefox to use only this font, then some (not all) of the missing characters appear ; but that's not a solution, since Opera doesn't have to do this to display correctly these characters (and some others).

For example, consider this page. With my usual Firefox settings, I see this. When I change them to these radical new settings, I see this. Look at the font of the normal text at the top ; obviously, it is DejaVu ; that isn't ideal : Opera does it better.

8
  • The "weird squares with numbers" that Firefox is showing are graphic representations which tell you the code of the character that is there. For instance, the first one, in Lettres additionnelles, is a box with A7 over 8D, which tells you the hexadecimal code, A78D, which a Unicode reference will tell you is 'LATIN CAPITAL LETTER TURNED H' (U+A78D).
    – mgkrebbs
    Commented Dec 27, 2013 at 4:22
  • You should specify which page is seen in the screen shots (link to it). By Arial, you probably mean Arial Unicode MS. We don’t have threads here, just questions and answers (and comments to them). Commented Dec 27, 2013 at 6:11
  • I couldn't put more than two links in my message because I'm a new superuser member. The page is fr.wikipedia.org/wiki/Alphabet_latin (look in the box called "Alphabet latin" at the bottom).
    – Oneyr
    Commented Dec 27, 2013 at 14:14
  • The question is much better defined now! I wonder if you have the Unicode BMP Fallback font, from SIL, installed on your computer. It seems to cause problems like this. Commented Dec 27, 2013 at 16:57
  • Nothing with "BMP" or "Fallback" is visible in my fonts list.
    – Oneyr
    Commented Dec 27, 2013 at 17:04

3 Answers 3

2

I update here since I had the same problem. The really simple solution for me is installing the GNU Unifont. It's FOSS and with an enormous range of unicode characters (if you feel like you need it): (with the "standard" version, I can display all the glyphs in the page listed above by the OP)

webpage: http://unifoundry.com/unifont.html

Present in most linux distrib repositories.

in Ubuntu: sudo apt-get install ttf-unifont

1

If you look closely at your screen shot of Opera, you’ll see that there are problems there, too. The characters that are missing on Firefox are missing on Opera, too, they are just replaced by various empty rectangles instead of rectangles with hex numbers in them. The answer to the question about differences is that the browsers handle the missing glyph problem differently.

Firefox actually handles the situation better by displaying an indication (albeit a technical one) about the identity of the character that cannot be rendered. CSS Fonts Module Level 3 CR recommends that, in section 5.2 Matching font styles: “8. If a particular character cannot be displayed using any font, the user agent should indicate by some means that a character is not being displayed, displaying either a symbolic representation of the missing glyph (e.g. using a Last Resort Font) or using the missing character glyph from a default font.”

As regards to the question why some characters are not rendered on either browser, check out the answers to the questions you mentioned. The general answer is that you simply need suitable fonts. For example, the character U+A78D mentioned by @mgkrebbs in a comment is relatively new (Unicode 5.2), and its font support is therefore rather limited. It has not yet been added to Arial Unicode MS, and it will probably never be added to Code2000 (which appears to be abandonware now). In practice, you would probably want to download and install the DejaVu font family to see it.

6
  • Thank you a lot for your support ! It is true that some characters are also missing on Opera, but most of them are handled correctly by Opera and not by Firefox, for example Ỻ, Ꜯ, and ꜳ ; that's why I don't think your solution is the good one. I tried it anyway ; on dejavu-fonts.org/wiki/Download I downloaded (and installed) 2.34/dejavu-fonts-ttf-2.34.zip and 2.34/dejavu-lgc-fonts-ttf-2.34.zip ; nothing has changed.
    – Oneyr
    Commented Dec 27, 2013 at 14:12
  • Update : it is weird, but Ỻ and ꜳ (not Ꜯ) appear correctly in my message (only once I send it, not when I'm writing it), but they don't on wikipedia or google. Here's a non-exhaustive list. Not appearing correctly on Firefox and appearing correctly on Opera : Ꝡ, Ꝺ, Ꝣ, Ꝯ, Ꝙ, Ꝿ, Ᵹ, Ꝼ. Appearing correctly on Firefox, but only on this website : Ꜫ, Ꞩ, Ꜿ. Appearing correctly on Firefox, but only on this website, and even when I'm writing my message : Ɦ, Ɀ.
    – Oneyr
    Commented Dec 27, 2013 at 14:26
  • Look at the original message's update for more details.
    – Oneyr
    Commented Dec 27, 2013 at 15:11
  • 1
    I have both images open. While there are a small number of characters not rendered in the Opera version, the vast majority have been fixed. Furthermore, as the OP said, he had to change the font settings to get it even that good in Firefox. Firefox does not seem to be falling back properly. If it weren't for the fact that you only have one upvote, I'd downvote for saying that they are the same.
    – trlkly
    Commented Jun 6, 2014 at 7:44
  • 1
    It's not complicated. You said that all the that are missing in Firefox are also missing in Opera. They aren't. The majority are present in Opera. Your answer does not explain this discrepancy but pretends like it doesn't exist. And the discrepancy is what the question is about. Hence you didn't actually answer the question. We still don't know why most glyphs are displaying in Opera but not in Firefox.
    – trlkly
    Commented Jun 7, 2014 at 2:16
0

I managed to fix the unrecognized characters issue I was having on Linux by installing the following packages:

apt-get install xfonts-unifont ttf-unifont

The above command assume a Debian system, for other distributions you may need to use another package manager and/or specific package names. You may also need to add `sudo to the very start.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .