Page 1 of 1

Tags and different character sets

Posted: Sun Sep 14, 2008 6:55 pm
by andym
Hi,

I have had a look through the various threads and cannot pick out this issue - so I hope it is new.

I have started to set up a site in English and Chinese and most things are working fine.

{title} and {cms_selflink ....} seem to raise a problem.

Title is working fine in the Menu but the squares appear in the top line of the browser window for Internet Explorer, though it is fine for Safari.

Ideally I'd want a mult-language Site Name too I guess...

The field with the label "Description (title attribute):" in the standard Tiny editor seems to need the English character set.  If I put in Chinese characters then the squares appear when you hover over links to the page in the menu or selflinks.

I applied the queries to achieve the "extended" version of MLE.

Have I missed something obvious?

A.

Re: Tags and different character sets

Posted: Sun Sep 14, 2008 8:54 pm
by viebig
what charset is passed thought meta tags?

something like:

<meta http-equiv="Content-Type" ....

Re: Tags and different character sets

Posted: Sun Sep 14, 2008 8:56 pm
by alby
andym wrote: I have started to set up a site in English and Chinese and most things are working fine.

{title} and {cms_selflink ....} seem to raise a problem.

Title is working fine in the Menu but the squares appear in the top line of the browser window for Internet Explorer, though it is fine for Safari.
What is "Menu"? MenuManager?

andym wrote: Ideally I'd want a mult-language Site Name too I guess...
Site Name is {sitename}?
Add in mle/lang/en_US.php and xx_XX.php the relative string site name (view tips #7)

andym wrote: The field with the label "Description (title attribute):" in the standard Tiny editor seems to need the English character set.  If I put in Chinese characters then the squares appear when you hover over links to the page in the menu or selflinks.
Look in html source and check which chars offending tag sintax

Alby

Re: Tags and different character sets

Posted: Sun Sep 14, 2008 9:47 pm
by andym
The character set is not Chinese in the Meta Data



As I said - the {title} in the top line of the browser window is actually fine in Safari, but the description on hover is NOT.

Curiously, in Firefox, the Description on hover is fine for the menu and for selflink but NOT for the {title}.


Site Name is {sitename} - Yes  - Add in mle/lang/en_US.php and xx_XX.php the relative string site name - Understood, thanks.

Menu Manager is not an issue.  The menu is displayed perfectly.

The problem with the menu (probably the same as for the cms_selflink) is the "description" when you hover with the mouse over the link.  The character set is obviously not Chinese.

Thanks for the rapid responses both.

A.

Re: Tags and different character sets

Posted: Mon Sep 15, 2008 4:23 am
by andym
Update:

Certainly partly a browser issue:

IE:

Does not display Chinese characters in link description or page title

Safari:

Does not display Chinese characters in link description but does display them in page title

Fire Fox, Netscape, Opera:

Displays Chinese characters in link description but not in page title

A.

Re: Tags and different character sets

Posted: Mon Sep 15, 2008 7:53 am
by alby
andym wrote: Update:

Certainly partly a browser issue:
Try to force utf-8 character set in browser

Alby

Re: Tags and different character sets

Posted: Mon Sep 15, 2008 10:55 am
by andym
Not sure I know how to force the issue.

The page already contains:



Did you mean to use some other method?

A.

Re: Tags and different character sets

Posted: Mon Sep 15, 2008 11:26 am
by alby
andym wrote: Not sure I know how to force the issue.
Check for example if you see with another encoding.
In FF: View > Character encoding

Alby

Re: Tags and different character sets

Posted: Mon Sep 15, 2008 11:54 am
by andym
Hi Alby,

Got it - thanks.

BTW: The problem I am talking about is shown on this forum.  If you are using IE and hover over the Ru.png Flag (Last one on the right) you can see the problems with character set first hand.

A.

Re: Tags and different character sets

Posted: Tue Sep 16, 2008 7:00 am
by alby
andym wrote: BTW: The problem I am talking about is shown on this forum.  If you are using IE and hover over the Ru.png Flag (Last one on the right) you can see the problems with character set first hand.
IE6 and FF 3.0.1 look same:

Code: Select all

alt="CMSMS -  руÑ

Re: Tags and different character sets

Posted: Tue Sep 16, 2008 9:48 pm
by andym
Hi Alby,

You are right.

But my page already contains:



And if I force the encoding it makes no difference.

If you are interested the pages are really simple on multilanguage.satnav2go.co.uk

I wonder if it is the entry in the config_lang.php file

'locale'=>'zh_CN.utf8@euro' Maybe it needs to be uft-8 not utf8@euro or something like that?


A.