Forum Moderators: open

Message Too Old, No Replies

encoding = iso

         

jeremy

12:07 am on Apr 30, 2003 (gmt 0)

10+ Year Member



When I remove the line
<?xml version="1.0" encoding="iso-8859-1"?>
from the first line of my code I get different different fonts used by different browsers.
Mozilla does not change but IE and Opera change to a larger font-size and different font type.
Any ideas why. I am new at this html programming, so I apologise if this is a dumb question.

DrDoc

1:02 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds odd... it shouldn't affect the font being used. Well, that is... are you declaring the charset elsewhere?

pageoneresults

1:08 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



DrDoc, wouldn't the removal of the line (<?xml version="1.0" encoding="iso-8859-1"?>) from the DOCTYPE cause the browser to go into quirks mode. And would this produce the font issue?

papabaer

1:38 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Jeremy, DrDoc, and PageOne!

Some references regarding <!doctype> switching and character encoding:

[opera.com ]
[gutfeldt.ch ]
[mozilla.org ]

...And the primary source: [w3.org ]

In an XML document, the character encoding of the document is specified on the XML declaration (e.g., <?xml version="1.0" encoding="EUC-JP"?>).

I personally do not include a <meta> character encoding statement as it is handled by the opening
XML declaration. You CAN use both, BUT the XML declaration takes precedence... Either case likely points to the answer.

I also keep the opening XML declaration... opening! That is, I don't place it elsewhere in the head content to avoid Quirk Mode. Rather, I code with Quirk vs. Standards implications in mind and mostly avoid them. Those that may be unavoidable (due to chosen design) have minimal effect and do not break the layout.

How are you all doing? Nice to see you guys! I missed ya!

DrDoc

3:05 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DrDoc, wouldn't the removal of the line (<?xml version="1.0" encoding="iso-8859-1"?> from the DOCTYPE cause the browser to go into quirks mode.

Well, the other way around ;)
I've never heard about it changing the font size though...

Welcome back, papabaer! Thought we'd lost ya forever :)

jeremy

11:50 am on Apr 30, 2003 (gmt 0)

10+ Year Member



Thnaks for the reply guys, I found the answer at
[hut.fi...]

Apparently Opera 7 and Mozilla cause the browsers to go into quirks mode when the xml is declaration is present with xhtml transitional. Mozilla does not, it goes to std mode.

Opera 7 says it increases default font sizes one size when going into quirks mode. I am not sure about what IE says it does, but it appears to do the same.

Thanks again for the help. Much appreciated.