Contributions
oscommerce-*-FR-w3c-*-UTF-8
Bonjour,
Voici une version utf-8 de la version française à oscommerce-fr.info.
Les changements sont :
1.Tous les fichiers ont été passes par iconv en utf-8.
2. Le charset dans les fichiers langues a été mis à jour.
3. Dans install/templates/main_page.php, le meta http-equiv charset est changé à UTF-8
4.La base de données exemple à importer (oscommerce.sql) après passage par iconv a une nouvelle ligne
SET NAMES utf8;
5.Ses tables sont creées avec
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci
Ceci est un package complet.
Hello,
This is a utf-8 conversion of the French oscommerce version
Changes are:
1.All files have been converted to utf_8 via iconv.
2.The charset in the language files has been updated to utf-8.
3.In install/templages/main-page.php, the meta http-equiv charset is changed to UTF-8.
4.The sample database (oscommerce.sql) after its passage throug iconv has these changes:
a new line
SET NAMES utf8;
was added at the beginning of the file
5.All tables are now created with the additional specs,
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci
This is a complete package.
| 4 Jul 2009 |
Explanation file, changes.txt added. Code unchanged.
Forgot to say,
5. La fonction tep_db_connect() dans includes/functions/database.php et admin/includes/functions/database.php a une nouvelle ligne : mysql_query("SET NAMES 'UTF8'") ;
6. Les biloutes ne se trouvent plus en Bretagne.
---
5. The function tep_db_connect() in includes/functions/database.php and admin/includes/functions/database.php has a new line : mysql_query("SET NAMES 'UTF8'") ;
6. A small correction was made to the zones table (59 changed to 56) for Brittany.
Nota bene :
There is another contribution that provides just the two database.php files and suggests alternatively to add two more lines in tep_db_connect().
mysql_query("SET CHARACTER_SET_CLIENT=utf8");
mysql_query("SET CHARACTER_SET_RESULTS=utf8");
after
mysql_query("SET NAMES 'utf8'");
but since it worked ok for me without them I did not put them in.
__________________________________
Complete package.
| 4 Jul 2009 |
Note: Contributions are used at own risk.
