How to convert a software to utf-8

For some of the languages (Japanese, Chinese) it is required to use the utf-8. If you are going to translate a software to these language, you have to convert the software to utf-8. There are a few simple steps for it:

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 function db_connect($sql_host, $sql_user, $sql_password) {
    $id = mysql_connect($sql_host, $sql_user, $sql_password);
    db_query("SET NAMES UTF8");
    return $id;
}
ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

For the X-Cart:

$sql_tbl = func_query_column("SHOW TABLES");
foreach($sql_tbl as $tbl)
  db_query("ALTER TABLE $tbl CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
setlocale(LC_ALL, 'en_US.UTF-8');

Ans that's all.