| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Tue Apr 19, 2005 7:35 am Post subject: %A problem in datestring |
|
I call function _DATESTRING3 which is defined like define("_DATESTRING3","%A %d.%m.%Y")
Now i have problem. From where this %A is called becouse Četrtek is written lik ?etrtek. UTF-8 is not compatible with Č so from where this Č is called that i can change it to Č, and then will work?
Any ideas?
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue Apr 19, 2005 7:46 am Post subject: Re: %A problem in datestring |
|
subject changed to something meaningful and moved to language forum
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Tue Apr 19, 2005 10:35 am Post subject: Re: %A problem in datestring |
|
Č is UTF-8 compatible!
Anyways any problem with utf special chars can be easly fixed by calling the funcion is this way
| PHP: |
utf8_encode(formatDateTime($row['time'], _PREFERED_DATESTRING));
|
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
Last edited by NanoCaiordo on Tue Apr 19, 2005 8:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Tue Apr 19, 2005 8:06 pm Post subject: Re: %A problem in datestring |
|
SO Č is UTF-8 compatible?
Why th4en i get something else instead of Č.
How do you mean caling that function?
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Tue Apr 19, 2005 8:39 pm Post subject: Re: %A problem in datestring |
|
drop the line that you are using to call the date function pls, and I'll do that for you .... anywyas you/I dont have to use the formatDateTime function becouse there is no 'time' to display, sorry my mistake.
Just drop the line in here, pls
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Tue Apr 19, 2005 8:51 pm Post subject: Re: %A problem in datestring |
|
$datetime = formatDateTime($time.' 00:00:00', _DATESTRING3);
_DATESTRING3 is defined like define("_DATESTRING3","%A %d.%m.%Y") in language/slovenian directory
Thnx NanoCaiordo
OutOfTopic: who do you think will win scudeto?
Juve or Milan
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Tue Apr 19, 2005 9:52 pm Post subject: Re: %A problem in datestring |
|
| PHP: |
$datetime = utf8_encode(formatDateTime($time.' 00:00:00', _DATESTRING3));
|
give it a try
FORZA MILAN!!!
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Wed Apr 20, 2005 3:38 pm Post subject: Re: %A problem in datestring |
|
hmm
now i get Četrtek like this
Èetrtek, still no Č.
What still can do that it will be Č.
NanoCaiordo do you have any ides?
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Mon Apr 25, 2005 12:02 pm Post subject: Re: %A problem in datestring |
|
try replacing dots with withe spaces
%A %d.%m.%Y
%A %d %m %Y
also this is not the default _DATESTRING3
from all language files _DATESTRING3 is
%d-%b-%Y
also what you are sayng
"is defined like define("_DATESTRING3","%A %d.%m.%Y") in language/slovenian directory"
doesnt seems to exist in l10n/slovenian and in /languages/slovenian ...
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Mon Apr 25, 2005 7:13 pm Post subject: Re: %A problem in datestring |
|
| Quote:: |
also what you are sayng
"is defined like define("_DATESTRING3","%A %d.%m.%Y") in language/slovenian directory"
doesnt seems to exist in l10n/slovenian and in /languages/slovenian ...
|
yes i have it in main.php in language/slovenian directory
Why do you said that, and i also try your last tip, but still not working. UTF-8 is not slovenian language compatible, becouse RSS also doesn't work with ČĆŽĐ.
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Tue Apr 26, 2005 11:45 pm Post subject: Re: %A problem in datestring |
|
I mean _DATESTRING3 is not as the same as what is in CVS.
Try using the original CVS file.
I tell you this because i get Cetrtek instead of Četrtek when you get Èetrtek
What I've noticed is in Win server I'm having problems with these chars but in Linux server all is fine!
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Wed Apr 27, 2005 3:47 pm Post subject: Re: %A problem in datestring |
|
yes default _DATESTRING 3 in VDS is define('_DATESTRING3','%d-%b-%Y'); but i liitle change it for me.
I iwll use default one, there is no date name so it will be OK.
i change all date to your code
$datetime = utf8_encode(formatDateTime($time.' 00:00:00', _DATESTRING3)); maybe it will work someday. I have the same problem with charset in linux and in windows. RSS modul has the same problem. I iwll try to comment AddDefaultCharset in httpd.conf and default_charset in php.ini. Maybe then it will be better. I will tell you. Thnx for now NanoCaiordo.
PS: 8 of the May will be soon. I hope Juve will won:D
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Sun Nov 20, 2005 9:06 pm Post subject: Re: %A problem in datestring |
|
As I can see from your server specs you have upgraded MySQL to 4.1.x, if you use Dragonfly original files are you still having the same problem?
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
senzacionale 500+ Posts Club


Offline Joined: Sep 26, 2004 Posts: 582 Location: Slovenija
|
Posted: Wed Nov 23, 2005 10:23 am Post subject: Re: %A problem in datestring |
|
Hello!
no still the same i also try with mysql 5 but alo the same. I don't know where is the problem so i don't use this anymore until it will be fixed.
_________________ Juventus the champion!
senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3879 Location: Melbourne, AU
|
Posted: Wed Nov 23, 2005 10:35 am Post subject: Re: %A problem in datestring |
|
Probably is a bug in php for windows, I'll try to debug it a bit better then I'll let you know about any results I get.
Forza Milan!!!
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
|
|