Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In those two browsers, this web page has all the accented characters displayed as questions marks.

Since the header apparently includes the right infos...

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

... why aren't characters correctly displayed?

I have to manually tell the browsers to use the Windows-1252 text encoding for the characters to be displayed as expected.

Thank you.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The characters are displayed correctly according to your headers. You will need to change the character-set in the response header, or encode your data in utf-8. These days, I believe the second option is preferred.

As you appear to be using Apache as your web server you can either output a line like Content-Type: text/html; charset=utf-8\n\n before any page content, or use mod-mime to change the character set using the AddCharset directive.

These are your headers as I retrieved them:

HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Mon, 14 Oct 2013 21:29:36 GMT
Server: Apache
Last-Modified: Sat, 31 Mar 2001 23:36:28 GMT
ETag: "1474dab-a06b-380d60eb17700"
Accept-Ranges: bytes
Content-Length: 41067
Vary: Accept-Encoding
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
share|improve this answer
    
Thanks but it's not my server. I'm just a user wondering why the two browsers failed displaying the data correctly. Does it mean the data is not encoded in Windows-1252, contrary to what the header says? –  OverTheRainbow Oct 15 '13 at 12:08
    
The data is encode in Window-1252, but is being decoded as UTF-8. Converting your documentation to UTF-8 will solve the problem, and use a standard character set. –  BillThor Oct 15 '13 at 12:43
    
Thanks Bill for the info. –  OverTheRainbow Oct 16 '13 at 11:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.