<SOLVED> In news, the date in Finnish seems to be in different encoding than...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

<SOLVED> In news, the date in Finnish seems to be in different encoding than...

Post by mannerv »

I am using CMS Made Simple with Finnish language chosen.

In the news section of my site, I get these symbols that to me seem to indicate that the character encoding is wrong somewhere.

You can see the behaviour live here, at the bottom left corner of the page in the news section. My CMS Made Simple should be using UTF-8 character encoding. When I set Firefox to use that encoding, my content shows up okay, but in the news, there is this text: joulu� 21, 2008. I am not sure if you see this, but there is this square with a question mark inside it, that is standing on its corner after the text "joulu".

If I set in Firefox character encoding into ISO-8859-1 Western, the symbol disappears, but my Finnish language umlauts become gibberish.

Is the translation file for Finnish in wrong encoding or what might be going on? Should I set my site to a different encoding?

Also, a minor thing, in Finland the dates are normally marked in the format 21.12.2008 or 21. joulukuu 2008. I would love if I could change this.
Last edited by mannerv on Thu Dec 25, 2008 12:25 pm, edited 1 time in total.
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Re: In news, the date in Finnish seems to be in different encoding than the site

Post by mannerv »

I noticed that in the news module the encoding seems to be wrong at the admin side also. I would love to fix this problem all around.

Can anyone point me in the right direction? Are there some translation files, where the month names are written in Finnish or where do the foreign month names come from?
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Re: In news, the date in Finnish seems to be in different encoding than the site

Post by mannerv »

And more follow-up. This same problem happened at http://www.opensourcecms.com/cms/cmsmadesimple/.

The language of the site was French and in the News module, the name of the month was shown incorrectly.

With UTF-8 it was: d�c 9, 2008.
With ISO-8859-1 it was: déc 9, 2008.
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: In news, the date in Finnish seems to be in different encoding than the site

Post by korpirkor »

It's only in dates (months) filtered by strftime - With Polish language is the same thing :P
Its late, so I'm giving you 2 solutions for this problem in PL: http://forum.cmsmadesimple.org/index.ph ... l#msg88300
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Re: In news, the date in Finnish seems to be in different en

Post by mannerv »

Thank you. I think I was able to understand what was needed to do.

Here are the instructions in English.

edited by moderator.

More information at http://php.net/setlocale
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: <SOLVED> In news, the date in Finnish seems to be in dif

Post by korpirkor »

Polish isn't such hard, don't U think ? :D

setlocale may be placed also in few additional modules, so You should check them all for setlocale LC_TIME and LC_ALL

edited by moderator.
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
nxthor

Re: In news, the date in Finnish seems to be in different en

Post by nxthor »

[quote="mannerv"]Here are the instructions in English.

Open up the file /include.php at the CMSms installation root.
edited by moderator.
Thx! straight solution to my problem in the first google-hit :). Nice, you made my day.

NXTHOR
Post Reply

Return to “CMSMS Core”