asc99c
asc99c

Reputation: 3905

Firefox not displaying CP437

I am developing an application with a Web interface, that is connecting up to an old Cobol mainframe, that uses CP437. We only have one system to communicate with, so if possible I would rather not do any charset conversions, and just use CP437 throughout.

I have changed the headers sent out with the HTML to show CP437 (in both the Apache header, and the meta tag):

Content-Type: text/html; charset=CP437
...
<meta http-equiv="Content-Type" content="text/html; charset=CP437">

It works well in internet explorer, with £ signs displaying correctly (pounds sterling, in case that symbol doesn't traslate!).

However, in Firefox, I just get the question marks in their place. In the Web Developer menu, the encoding shows as ISO-8859-1, so it looks like Firefox just doesn't recognise the character set.

Does anyone know how to get these working together? Is there anywhere a list of the character sets that Firefox knows about?

Upvotes: 5

Views: 832

Answers (3)

Chris Haas
Chris Haas

Reputation: 55417

One other thing that you could try is using CP850 which is pretty close to CP437. Some of the box characters differ but I don't think you're using them.

Upvotes: 2

Boris Zbarsky
Boris Zbarsky

Reputation: 35054

http://mxr.mozilla.org/mozilla-central/source/intl/locale/src/charsetalias.properties is a close approximation of the charsets Gecko knows about. CP437 is not in fact one of them.

Upvotes: 2

Dr.Molle
Dr.Molle

Reputation: 117314

It's a issue of the font the text is displayed with. Assuming windows as users OS you may set up your CSS to display all elements using the Terminal-font.

*{font-family:Terminal !important;}

Upvotes: 0

Related Questions