Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ %A problem in datestring :: Archived


%A problem in datestring :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Go to page 1, 2, 3  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

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

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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
View user's profile Visit poster's website MSN Messenger
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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 Big grin

_________________
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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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!!! Big grin

_________________
.:: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: 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.
Code::
�etrtek

_________________
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
View user's profile Visit poster's website MSN Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3879
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 1 of 3
All times are GMT
Go to page 1, 2, 3  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy