OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Is it the right method to convert osc to UTF-8?
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Languages and Zones
NerioDavid
I have posted this question a few days ago. In order to avoid duplicate post, here is the link to my question:

http://forums.oscommerce.com/index.php?showtopic=270305

Or, if someone can, it may be better to moved it here.


Please if some of you can tell me what I thought is right or not?


Thanks.
Milutin
QUOTE (NerioDavid @ Jul 23 2007, 01:16 AM) *
I have posted this question a few days ago. In order to avoid duplicate post, here is the link to my question:

http://forums.oscommerce.com/index.php?showtopic=270305

Or, if someone can, it may be better to moved it here.
Please if some of you can tell me what I thought is right or not?
Thanks.


I am using Serbian translation for my oscommerce done by me! And in order to work it had to be converted to utf-8 but you have to convert all lenguage files and all your files in root.
This is the way how I did it and it functions, additionaly you will have to change some coding in yourlanguage.php,
CODE
// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

This shoul reflect your coding
NerioDavid
QUOTE (Milutin @ Jul 23 2007, 10:33 PM) *
I am using Serbian translation for my oscommerce done by me! And in order to work it had to be converted to utf-8 but you have to convert all lenguage files and all your files in root.
This is the way how I did it and it functions, additionaly you will have to change some coding in yourlanguage.php,
CODE
// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

This shoul reflect your coding


Thanks for the replying, Milutin.

Could you tell me what I can find a complete list of ISO code, e.g, America English is , en_US.ISO_8859-1?
And, can I set the mysql 4.0.16 use UTF-8 collation?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.