Hello, all,
I tried to apply this OsCommerce Data Importer but meet difficulties of characteres cannot be copied to the new database.
My Database includes UTF8 characters, and it seems to be typical "UTF8 in ADODB" problem.
Normally, use set names query like this once when firstly connect to DB to solve this problem, but I have no skill to write script.
---- sample -----
somewhat and somewhere need to write something like this:
================================================== ==========
$db->Connect( $dbhost, $dbuser, $dbpasswd, $dbname );
// Make sure any results we retrieve or commands we send use the same charset and collation as the database:
$db_charset = $db->Execute( "SHOW VARIABLES LIKE 'character_set_database'" );
$db->Execute( "SET NAMES '" . $db_charset->fields['Value'] . "'" )
$db_charset->Close(); // Optional
================================================== ==========
Resources:
http://phplens.com/lens/lensforum/topics.php?id=4
http://adviesenzo.nl/examples/php_mysql_charset_fix/
note: this was copied from PAP suport forum, but the nature is the same. This error is quite a lot for scripts from "Lain1" countries...
Is it possible to rewrite some code to apply this???
Or is there anyone who can show me where to change in the OSC data importer???
Thank you!