UTF-8 and danish names of days

Having trouble installing serendipity?
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

UTF-8 and danish names of days

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

Post by Guest »

Not in my calendar, in the date. Hm, not much activity here... :?:
Mumbo Jumbo

Post 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:
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post 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.
Alexander Mieland, dma147
http://blog.linux-stats.org
Guest

Post by Guest »

Okay, thanks! :wink:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Thanks, but it doesn't seem to work. :?
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

I even went to the lang/UTF-8/serendipity_lang_da.inc.php too!
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Did you have a talk with your server admin and asked him about the right LOCALE to use?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post 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:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post 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:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post 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');
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post 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...
read my serendipity blog
http://blangstrup.info
Post Reply