Page 1 of 2

UTF-8 and danish names of days

Posted: Sat Oct 01, 2005 3:12 pm
by davidcrickett
I can't get my (newly) installed (latest beta) version to show the names of the danish weekdays properly, for æ ø å it shows only weird signs.

Posted: Sat Oct 01, 2005 9:22 pm
by Guest
Not in my calendar, in the date. Hm, not much activity here... :?:

Posted: Sun Oct 02, 2005 1:24 pm
by Mumbo Jumbo
For example, saturday in danish is lørdag, and the ø gets scrambled in the entry date - but nowhere else on the UTF-8 site. So I reckon the entry date has another origin, and where to change the date to UTF-8 or to call another PHP UTF-8 date form?
Is this forum totally dead or what? :roll:

Posted: Sun Oct 02, 2005 2:04 pm
by dma147
Hi...

this forum is not dead but why should one answer when he doesn't know the correct answer? *g*

It seems, that the only one who could know a solution for your problem, garvinhicking, is in his long weekend without pc. He will be back on Tuesday.

Please be patient.

Posted: Sun Oct 02, 2005 5:23 pm
by Guest
Okay, thanks! :wink:

Posted: Tue Oct 04, 2005 3:55 pm
by garvinhicking
I'm back. :)

The reason why you get wrong output, is that s9y is not using the correct locale on the server for date output.

Look in your lang/serendipity_lang_da.inc.php file. There it says:

Code: Select all

@define('DATE_LOCALES', 'danish, da, da_DK, da_DK.ISO8859-1');
You might need to change your danish/da or da_DK locale to be UTF-8 instead of ISO. Or you edit that language file and set a "da_DK.UTF-8" as the first entry; or whatever the name of your DA language locale file is on your webserver. When in doubt, ask your nice server admin. :)

Best regards,
Garvin

Posted: Tue Oct 04, 2005 6:27 pm
by Guest
Thanks, but it doesn't seem to work. :?

Posted: Tue Oct 04, 2005 6:31 pm
by davidcrickett
I even went to the lang/UTF-8/serendipity_lang_da.inc.php too!

Posted: Tue Oct 04, 2005 6:45 pm
by garvinhicking
Did you have a talk with your server admin and asked him about the right LOCALE to use?

Regards,
Garvin

Posted: Tue Oct 04, 2005 6:52 pm
by Guest
No, but I've tried this before and even looken up the danish locale here http://www.mpi-sb.mpg.de/~pesca/locales.html - further down in the document there's something about using PHPs strftime() variables?(Standard: "%s")'); :shock:

Posted: Tue Oct 04, 2005 7:28 pm
by garvinhicking
Just because the locale is listed there does not necessarily mean that the locale is installed and available on your server. You need to ask the admin if the locale you try to use is installed there...

Regards,
Garvin

Posted: Tue Oct 04, 2005 8:25 pm
by Guest
Okay, I get it :lol: I have now asked my very nice server admin. But logically, why shouldn't it be installed on a _danish_ server? :shock:

Posted: Tue Oct 04, 2005 8:42 pm
by garvinhicking
Well, there are also a lot of german servers that either have no german locale, or only have the ISO-Locale and not the UTF-8 one...

Regards,
Garvin

Posted: Tue Oct 04, 2005 11:11 pm
by Guest
I solved it by taking away the name of the day here, like this

Code: Select all

@define('DATE_FORMAT_ENTRY', '%e. %B %Y');

Posted: Wed Oct 05, 2005 7:30 pm
by davidcrickett
No, I didn't solve it, I got an error message, so... I'm waiting for my nice admin to tell me if I have the right locale installed...