Tags and different character sets

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Tags and different character sets

Post 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.
viebig

Re: Tags and different character sets

Post by viebig »

what charset is passed thought meta tags?

something like:

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

Re: Tags and different character sets

Post 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
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Re: Tags and different character sets

Post 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.
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Re: Tags and different character sets

Post 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.
alby

Re: Tags and different character sets

Post by alby »

andym wrote: Update:

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

Alby
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Re: Tags and different character sets

Post by andym »

Not sure I know how to force the issue.

The page already contains:



Did you mean to use some other method?

A.
alby

Re: Tags and different character sets

Post 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
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Re: Tags and different character sets

Post 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.
Last edited by andym on Mon Sep 15, 2008 8:03 pm, edited 1 time in total.
alby

Re: Tags and different character sets

Post 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 -  руÑ
andym
Forum Members
Forum Members
Posts: 31
Joined: Mon Dec 24, 2007 9:00 pm

Re: Tags and different character sets

Post 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.
Locked

Return to “[locked] CMSMS MLE fork”