UTF-8 With The "%s thing"
joles <[email protected]> 5 Aug 2003 23:11:09 -0000
| Newsgroups | gmane.comp.web.oscommerce.devel |
|---|---|
| Message-ID | <f99b9eda2dfc4b45b9b01ded1775655e@osCommerce-Forums> |
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=208234#208234
----------------------------------------------------------------
// file catalog/includes/languages/
[code]
define('TEXT_DATE_ADDED', 'This article was added to our catalog on %s.');
[/code]
should render on screen like
----------- cut here------------
This article was added to our catalog on Tuesday 05 August, 2003.
or like this in Ukrainian:
This article was added to our catalog on Вторник 05 Августа, 2003.
but in Netscape 7.02 page encoding is utf-8 renders like this:
This article was added to our catalog on ������� 05 �������, 2003.
----------- cut here------------
copy and paste 2 notepad, ultraEdit or whatever U use, save it as Html
and view it encoding utf-8. You will see what I see :roll:
Question is:
Where the system is getting this %s (date) from.
How to change it, so its render correctly under UTF-8
Dose it has anything to do with:
// catalog/includes/languages/ukrainian.php
[code]
setlocale(LC_TIME, 'ru_RU.WINDOWS-1251');
[/code]
I have changed this to:
[code]
setlocale(LC_TIME, 'ru_RU.UTF-8');
[/code]
but it don't work.
Any ideas?