Vers. 0.6 & Charset problem
Vers. 0.6 & Charset problem
Hi, I have translated lang file to Czech. We are using charsets Win-1250 or ISO-8859-2 of UTF-8 here. Last versions S9Y up to 0.5 were bad - pages were returned to ISO-8859-1 and our specific characters were damaged. After the lot of changes in headers it was better but titles of entries were printed still in bad coding. I abandoned it and looked for some better system - sorry but lot of blogs have similar problems with charsets. Now I wanted 0.6 is OK, but, sorry, it is still the same - Titles are damaged and some of Admin pages are temporary switched to bad coding (f.e. from Win-1250 which is set up in lang file to ISO...). It's harm S9Y is very nice indeed...
ehh, did you set
@define('LANG_CHARSET', 'foo');
@define('DATE_LOCALES', 'foo');
correctly in your lang file?
@define('LANG_CHARSET', 'foo');
@define('DATE_LOCALES', 'foo');
correctly in your lang file?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk
Next story with charset
If I want admin UI worked properly I have to add to serendipity_admin.php that line to <head>:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
Otherwise the charset is changed from page to page view.
Next is example of entry title:
Pøíšerný dìs - žížala
and body text is right:
Příšerný děs -žížala...
I am not sure if it will be emailed well - but I hope...Perhaps it helps...
In the present time the S9Y is not usable in our country, very very sorry...
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
Otherwise the charset is changed from page to page view.
Next is example of entry title:
Pøíšerný dìs - žížala
and body text is right:
Příšerný děs -žížala...
I am not sure if it will be emailed well - but I hope...Perhaps it helps...
In the present time the S9Y is not usable in our country, very very sorry...
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Could you please try this: http://garv.info/serendipity/lang.diff patch and tell if it works with your language?
If yes, I would like to implement it in the 0.6 final release!
If yes, I would like to implement it in the 0.6 final release!
Important - I tried your
lang.diff. Admin pages look OK (still right charset) but small error - I cannot simply to admin page after click on superuser as before, still there is entry page...Sorry the biggest problem with damaged titles persists. The same...as my example before. I cannot find which function parses the titles...Look here for the part of source code (title-in-link)
">P&&šern& d&s - ž&žala<
It's clear that system translates some characters to html entities which is QUITE BAD !!! It must stay as is...I think.
">P&&šern& d&s - ž&žala<
It's clear that system translates some characters to html entities which is QUITE BAD !!! It must stay as is...I think.