Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-12 18:42:53

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Broken Date Format encoding in el(greek) localized backend r(1808)

I’m not sure right now wether this occurs only, because it’s running on Apache on windows, but
the dates on all instances for are coming out in mangled characters.

I’ve seen this in previous versions of TXP al well and it got fixed AFAIK.

(Testing locally on Apache 2.2)

rgrds, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#2 2006-09-12 23:24:45

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Do you know if it was working in svn prior to r1804?

What locale is listed in your diagnostics?

These are the locales used for el-gr, are they correct?

'el-gr' => array('el_GR.UTF-8', 'el_GR', 'el', 'gre', 'greek', 'el_GR.ISO_8859-7'),

Alex

Offline

#3 2006-09-13 19:54:32

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

This seems to be correct.
Note, that the problem only occurs on the Date format in the backend.
After further investigating, I found this doesn’t occur for Apache served Sites on nix-like platforms.

It does however if Apache runs on windows.
I added also a AddDefaultcharset directive for windows CP-1253 Codepage to httpd.conf , no changes though.

Could it be php or mysql related ?( e.g.: configuration files) ?

This seems to apply to any version of TXP.

regards, marios

Last edited by marios (2006-09-13 20:25:19)


⌃ ⇧ < ⌃ ⇧ >

Offline

#4 2006-09-14 02:40:11

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Can you use your browser to check the character encoding on the problem pages, please? Is it utf-8? Does it fix the problem if you switch your browser to utf-8 or some other encoding?

(View Page Info in Firefox)

Last edited by zem (2006-09-14 02:41:20)


Alex

Offline

#5 2006-09-14 13:15:58

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Not the case, none of the Browsers uses anything else then UTF-8.Here is a screenshot, how it looks like,
all characters, which are non ASCII, occours only on date formats on the backend.

<img src=“http://www.consking.com/screenshots/prefs_date_time_format.png” width=“236” height=“316” title=“Prefs Date Time Format” />

Isn’t the date format rendered by a php function from within TXP ?
May be the problem is there.

regards, marios

Last edited by marios (2006-09-14 14:21:52)


⌃ ⇧ < ⌃ ⇧ >

Offline

#6 2006-09-14 22:28:38

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Isn’t the date format rendered by a php function from within TXP ?
May be the problem is there.

It’s rendered by PHP’s strftime() function, which supports locales on most systems. It does the translation.

Have a look at admin/diagnostics. What is the Locale value? (It should be el_GR.UTF-8 or similar).


Alex

Offline

#7 2006-09-14 22:58:29

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

It seems, that it doesn’t prefer the greek UTF locale.

I get: Τοπική ρύθμιση: Greek_Greece.1253,
from diagnostics.

I get those ANSI locales for all the other languages too, when Apache runs on windows platforms.
But only when a language contains non ASCII characters, then I would get to see something like in the screenshot.

I also tried to switch my preferred locale back and forth in Regional settings (That’s win2k), haven’t checked on XP yet though,
but the result remains the same.

regards

Last edited by marios (2006-09-14 23:20:17)


⌃ ⇧ < ⌃ ⇧ >

Offline

#8 2006-09-14 23:33:40

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

I get: Τοπική ρύθμιση: Greek_Greece.1253,
from diagnostics.

Do txp:posted dates display properly on public pages? Are those pages served up as utf-8 also?


Alex

Offline

#9 2006-09-14 23:48:03

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Only backend pages (frontend displays as expected)

And to summarize again: This happens, when a page is served by Apache on windows.
I wonder, if anybody can confirm this, since I get that on all Languages, that have non ASCII characters.
What about the settings in php.ini, how are they supposed to be ?

regards, marios

Last edited by marios (2006-09-14 23:59:18)


⌃ ⇧ < ⌃ ⇧ >

Offline

#10 2006-09-14 23:59:59

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Strange. Both front and back end pages use the same locale, the same encoding, and the same functions to display dates.

Can you confirm with Firefox that:

  • The content-type is text/html; charset=utf-8 (Tools/Page Info/General, in the Meta box)
  • The browser is using UTF-8 (View/Character Encoding)

..separately for front and back end pages.


Alex

Offline

#11 2006-09-15 13:28:40

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Yes, that’s both the case, however I was mistaken on the fact, that this appears only on Backend pages.
It does in all cases.
I just didn’t get to see it, since I had it set to a date format, that does only contain numbers.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#12 2006-09-15 21:56:40

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Broken Date Format encoding in el(greek) localized backend r(1808)

Can you check your phpinfo and see if you have the iconv extension installed? What are its settings?


Alex

Offline

Board footer

Powered by FluxBB