UTF-8 and danish names of days
-
davidcrickett
- Regular
- Posts: 83
- Joined: Sat Oct 01, 2005 10:25 am
- Location: Denmark
- Contact:
UTF-8 and danish names of days
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.
-
Mumbo Jumbo
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.
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
http://blog.linux-stats.org
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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:
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
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');
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/
# 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/
-
davidcrickett
- Regular
- Posts: 83
- Joined: Sat Oct 01, 2005 10:25 am
- Location: Denmark
- Contact:
I even went to the lang/UTF-8/serendipity_lang_da.inc.php too!
read my serendipity blog
http://blangstrup.info
http://blangstrup.info
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Did you have a talk with your server admin and asked him about the right LOCALE to use?
Regards,
Garvin
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/
# 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
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")'); 
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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
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:
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
http://blangstrup.info