Firefox 3: How to set Character encoding?

Discussion of general topics about Mozilla Firefox
Post Reply
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
from menu View | Character Encoding there is set "Unicode (UTF-8)". If I change this encoding to "Central Europe (ISO-8859-2)" Firefox displays special characters correctly. But when I open new browser or new tab the encoding is set back to "Unicode (UTF-8)", so I need to change encoding for every new tab. This is very annoying.

How to set encoding to my desired encoding without Firefox changing it automatically, just like in
Firefox 2.

My system: Firefox 3 on Windows XP SP3
Thanks,
Abcuser
Last edited by abcuser on June 20th, 2008, 12:59 am, edited 1 time in total.
teoli2003
Posts: 5091
Joined: November 10th, 2005, 2:54 am
Contact:

Re: Firefox 3: How to set Character encoding?

Post by teoli2003 »

You shouldn't do that. I suspect that the site is coded in ISO-8859-2 and advertise UTF-8. Could you give us a link so that we check?
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
there is no particular site...
1. Open http://www.finance.si/ -> see View | Character Encoding is set "Central European (ISO-8859-2)".
2. I press <Ctrl>+<t> to get new tab. And check View | Character Encoding and it is set to Unicode (UTF-8).

How to permanently set every new tab, window to Central European code page? I would like to have this encoding by default for all web pages that does not have meta tag in head of HTML page (View | Page Source):
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> --> for example this should display web page in UTF-8. But if this meta tag is not used in html file, by default I would like to use Central European encoding.
I could set default encoding in Firefox 2. But now in Firefox 3 it looks like any new tab is breaking my personal encoding settings.
Regards,
Abcuser
Last edited by abcuser on June 20th, 2008, 1:00 am, edited 1 time in total.
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
as I have analyzed this in detail it looks like this encoding is only problem for web pages that does not use meta tag. I look into some intranet web pages and this web pages doesn't have meta tag. So by default UTF-8 is selected and pages are not displayed as it should. Changing View | Character Encoding only helps for current tab - which is by the way correct - every tab should have there own encoding. But when new tab is opened then UTF-8 is always set as default encoding. Firefox 2 opened new tab in last selected View | Character Encoding settings. So selecting only once this settings from View menu and there way many years I haven't need to change it. It looks like Firefox 3 is by default not capable of remembering last settings selected. Is there any way to set default character encoding for new tabs?
Thanks
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
I have checked my option settings. In Tools | Options | Content | Fonts & Colors press Advanced button | Character Encoding: Default Character Encoding: Central European (ISO-8859-2). See details in picture:
Image

On the same dialog I have pressed the Help button and there is help:
"Character Encoding: The character encoding selected here will be used to display pages that do not specify which encoding to use."

It looks like this is a bug in Firefox 3. Is it?
Regards,
Grofaty
teoli2003
Posts: 5091
Joined: November 10th, 2005, 2:54 am
Contact:

Re: Firefox 3: How to set Character encoding?

Post by teoli2003 »

What you are trying to do is pointless.

Fx 3 apply to each page a character set according:
1) The charset set in the http headers (1st priority)
2) The charset set in the html page (2nd priority).

That's enough to display all-correctly-coded page.
Then you can change the encoding manually for testing purpose or non-correctly-coded page.

The about:blank is an html page coded in UTF-8 (there is html code on it), so it is expected that it is displayed with UTF-8 chosen. It doesn't mean that the next page in that tab will also use UTF-8.
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Teoli2003, that is quite logically for pages that uses encoding in html page/header...
But what about pages that does not use any info in html page - why does not Firefox 3 uses the following settings: Tools | Options | Content | Fonts & Colors press Advanced button | Character Encoding: Default Character Encoding? Why is UTF-8 default and not "Default Character Encoding" code page settings?
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
I have installed Firefox 3.0.1 and this problem still persist. So the problem is: for web pages that does not have specified encoding in meta tag e.g. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2" /> inside tags <head> and </head> and browser settings Tools | Options | Content | Fonts & Colors press Advanced button | Character Encoding: Default Character Encoding is set other than UTF-8, this last setting is not considered.
Is this a bug? I didn't have this problem in Firefox 2.
Thanks
abcuser
Posts: 261
Joined: March 12th, 2007, 11:19 pm

Re: Firefox 3: How to set Character encoding?

Post by abcuser »

Hi,
it looks like this is a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=158285
Thanks
Post Reply