encoding problem that drives me mad

Found a bug? Tell us!!
Post Reply
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

encoding problem that drives me mad

Post by petval »

Hi,

I had Serendipity hosted on windows server, IIS & mysql 4. It was UTF-8 and I used Czech and English. The company was buyed by another company and the content moved to a linux server, apache & mysql 5.

I updated the paths and it worked except one thing - the date and month names in the czech version. The characters with diacritics are displayed wrong. I tried to switch encoding first but nothing helped. Then I thought I just change the strings in source but I can't find them either in source files nor database. Are they being computed by the code?

I even tried a couple of new installations where I tried to use the UTF8_unicode and during installation I chose both English and Czech (Win-1250 and ISO-8859-2).

But no matter what combination of db encoding and language setting during installation I choose it is displayed wrong.

I don't know what to do, I like Serendipity, I have it tuned to my needs but I can't use it right now.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: encoding problem that drives me mad

Post by garvinhicking »

Hi!

You must install the proper czech locale for the linux server. The locale name for native charsets is one of:

cs_CZ.ISO-8859-2, cs_CZ.ISO8859-2, czech, cs

For UTF-8 charsets it is one of:

cs_CZ.UTF-8, cs_CZ.UTF8, czech, cs

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/
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

Re: encoding problem that drives me mad

Post by petval »

garvinhicking wrote:Hi!

You must install the proper czech locale for the linux server. The locale name for native charsets is one of:

cs_CZ.ISO-8859-2, cs_CZ.ISO8859-2, czech, cs

For UTF-8 charsets it is one of:

cs_CZ.UTF-8, cs_CZ.UTF8, czech, cs

Best regards,
Garvin
Thanks!

Is this something I have to do during the Serendipity installation or configuration or something that the hosting company should preconfigure for me on Apache? There must be some locales as the characters with diacritics from entries are displayed correctly when I edit them. I just can't find where can I update the day names string.

Can you please tell me where the strings of the day names are stored? I'm really curious as I can't find them anywhere.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: encoding problem that drives me mad

Post by garvinhicking »

Hi!

This is something the hosting provider needs to do at Root/SSH/Linux-level.

You might want to google/wikipedia for "locale", that explains it much better than I could :)

The strings are not stored in serendipity, that's where the locales are used.

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/
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

Re: encoding problem that drives me mad

Post by petval »

thanks for explanation, it helped me! now it works.
Post Reply