Victor
Victor

Reputation: 17107

UTF-8 on FF cannot display french accents

On my FF browser, the encoding is set to UTF-8. The french accents are displayed properly on all pages except one page. On the trouble page, they show up as '?' marks. When I change the encoding to western, the trouble page displays french accents properly, while the other pages now do not display french accents properly.
On IE, the setting is UTF-8 and all pages show proper french accents

Upvotes: 1

Views: 4175

Answers (2)

Abhi
Abhi

Reputation: 31

I know it's an old post. But, I was facing the same issue and I used htmlentities() in php, when nothing else worked out. This solved the purpose for me, so thought of mentioning it here so that someone else can benefit from it.

Upvotes: 3

Keith Thompson
Keith Thompson

Reputation: 263497

What's the web page?

Most likely the page's own encoding is ISO 8859-1 or something similar (a pure 8-bit encoding). Some web pages don't bother to specify their own encoding in the Content-Type: header, leaving the browser to guess. Apparently in this case Internet Explorer guesses better than Firefox.

If you have the curl command, try curl --head URL to see how and whether the encoding is specified, or right-click and View Page Info in Firefox.

You might consider contacting the owner of the web page and asking them to set the encoding properly (or, as I'd do, just ignore it).

Upvotes: 2

Related Questions