foreign characters
Posted by: vdolnik1 (---.hfc.comcastbusiness.net)
Date: August 02, 2009 08:52AM

I have a problem with foreign characters in my Czech blog, particularly comments by readers.

In the default.hrm, there are lines
<meta http-eqtiv="Content-Type" content="text/html; charset=windows-1250">
<meta http-equiv="Content-Language" content="cs">

The non-standard characters are displayed properly both when written directly in the default.htm file and when loaded from the database and echoed by php.

The true problem is with comments by readers. Some characters like Ø (R caron, Alt -0216) are not displayed properly, a question mark is placed instead. Actually, this problem occurs already in the comment database.
When I fixed the record in database via phpmysql and replaced question marks with proper characters, they were displayed as question marks again in the comments.

In httpd.conf, I got the lines

Include conf/extra/httpd-languages.conf
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so

In httpd-languages.conf, i got lines

DefaultLanguage cs
AddLanguage cs .cz .cs
AddLanguage en .en
LanguagePriority en cs
AddCharset WINDOWS-1250 .cp-1250 .win-1250

In the database the collation is set to cp1250_czech_cs.

Nevertheless all comments in the blog show question marks instead of foreign characters.

What is wrong?

Vlad Dolnik

Options: ReplyQuote


Sorry, only registered users may post in this forum.