Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

A place to discuss Joomla! translation matters.

Moderator: wendhausen

Locked
User avatar
feax
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Oct 08, 2005 9:54 pm
Contact:

Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by feax » Wed Oct 19, 2005 6:50 am

Has anybody encountered this problem, yet?

The page source of returned pages by Joomla v.1.0.3 is



but IE 6.0 and Firefox 1.07 automatically select Western Latin (iso-8859-1) encoding to display my Joomla pages. This happens every time a page is reloaded.
Gerasimos Mouzakitis
http://www.amicme.biz
The future is classical

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by infograf768 » Wed Oct 19, 2005 7:06 am

feax wrote: Has anybody encountered this problem, yet?

The page source of returned pages by Joomla v.1.0.3 is



but IE 6.0 and Firefox 1.07 automatically select Western Latin (iso-8859-1) encoding to display my Joomla pages. This happens every time a page is reloaded.
Could you give us an url?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
feax
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Oct 08, 2005 9:54 pm
Contact:

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by feax » Wed Oct 19, 2005 9:04 am

My Joomla installation is locally.

Latest clues:
First, I saved my home page as a static web page complete file using either IE or Firefox and opened the file outside localhost's URL. In that case the browsers encoding resembles that of saved file.

Then i loaded again the save static page using localhost's URL: eg localhost/saved_file.html and I saw that browser is still encoding the file as Wester Latin even the page source encoding is UTF-8.

So I consider that something has to do with my locally installed environment.

Installation is based on the following environment:

      Windows XP Greek with Sp2
      Apache/2.0.54 (Win32) PHP/5.0.4
      MySQL version 4.1.14
      phpMyAdmin 2.6.3-pl1

Note: No changes to language file or database file have been made
Gerasimos Mouzakitis
http://www.amicme.biz
The future is classical

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by infograf768 » Wed Oct 19, 2005 9:55 am

Sorry, unclear to me.
What do you mean by saving a static page from Joomla?
Could you post that file here (as a zip)?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
feax
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Oct 08, 2005 9:54 pm
Contact:

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by feax » Wed Oct 19, 2005 10:26 am

You can save a page that your browser displays as a web page complete from browser's menu

File > Save Page as... >

Then what i did was to load the saved page with:

File > open file, in this case browser's URL looks something C://www/htdocs/saved_file.htm

This works fine, but

if I load my saved page as http://localhost/saved_file.htm

the browser insists to encode the page with Western Latin.

So I think the problem resides in my local environment installation

I have attached the file you have asked for
You do not have the required permissions to view the files attached to this post.
Last edited by feax on Wed Oct 19, 2005 10:33 am, edited 1 time in total.
Gerasimos Mouzakitis
http://www.amicme.biz
The future is classical

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by infograf768 » Wed Oct 19, 2005 11:40 am

Ok, I looked at your file.

First: why would you save a dynamic page in html?
I can't understand the purpose of it.

Second: even with the manipulation you do i.e. looking at this page in a static environment, I still get the browser to read the instructions given to it by the page, i.e. utf-8 encodings.

I can't guess the purpose of all this, but if you use the correct encoding in the language.php file (whether it is English or Greek) you will get the encoding you want for the produced pages.

This does not solve all problems concerning utf-8 encodings for multibyte languages obviously (this is to come in a next version of Joomla!) but for the Greek language, it should be Ok.

I suggest you pm to macman (one of the Greek Translation Team) http://forum.joomla.org/index.php?action=profile;u=544 if you need help with Greek language.

Hope this helps.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by kenmcd » Wed Oct 19, 2005 11:57 am

Your CSS file appears to have two body elements.
The first one has no fonts specified.
When no font is specified for the body text the browser uses it's own default font (set in Internet Options in IE).
This default font is also set by default to use a Latin character set.

The second body does have fonts specified which do include UTF-8 (Arial, etc.)
You have this in the /** old stuff **/ section.

There may be other duplicate elements; I did not check.
Suggest you delete the duplicate element(s), and be sure to have a font specified (as in second body) which supports UTF-8.
██ LibreTraining

User avatar
feax
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Oct 08, 2005 9:54 pm
Contact:

Re: Joomla pages encoding is UTF-8 but browsers display encoding is ISO-8859-1?

Post by feax » Thu Oct 20, 2005 4:43 pm

kenmcd wrote: Your CSS file appears to have two body elements.
The css file is the default rhuk_solarflare_ii CSS file.

I did a post at templates forum notifying them of duplicate elements found in  rhuk_solarflare_ii CSS file.

Here is the link to this post: http://forum.joomla.org/index.php/topic,13485.0.html
Gerasimos Mouzakitis
http://www.amicme.biz
The future is classical


Locked

Return to “Translations”