Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-09-15 22:40:22

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

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

It shows enabled (v. 1.9)
However the input, internal and output Directives are all set to ISO-8859-1, both for Local and Master

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#14 2006-09-15 22:56:36

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)

That should be ok. Look for this line in lib/txplib_misc.php, around line 1096:

$new = @iconv($charset, 'UTF-8', $str);

..and try removing the ‘@’. Does that produce an error or warning message?

If not, try removing or commenting out these two lines just below, around line 1011:

         elseif (is_callable('utf8_encode'))
            $str = utf8_encode($str);

Any improvement?

Last edited by zem (2006-09-15 22:56:54)


Alex

Offline

#15 2006-09-15 23:43:24

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

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

In the first case I get:

Notice: iconv() [function.iconv]: Wrong charset, conversion from `1252’ to `UTF-8’ is not allowed in Z:\Siteroot\textpattern\lib\txplib_misc.php on line 1098 (no changes on Date format encoding)

and in the second case:

I get the squared quotationmarks instead.

regards

Last edited by marios (2006-09-15 23:50:37)


⌃ ⇧ < ⌃ ⇧ >

Offline

#16 2006-09-16 00:10:10

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)

Bingo. Try r1815.


Alex

Offline

#17 2006-09-16 10:54:19

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

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

Nice catch Zem, this works for front and backend.
Haven’t checked for other languages though.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB