我的pw432是 gbk字符集, 想转到 utf8 dz410 论坛, 转换一切正常
但论坛内容都是乱码
转换设置如下:
<?php
/*
[DISCUZ!] convertinc/config.php - basically configuration for phpwind 4.3.2 => Discuz!4.1.0
This is NOT a freeware, use is subject to license terms
*/
//请仔细设置下面的参数===========================================================
$dbhost = 'localhost'; // MySQL 数据库服务器,如:127.0.0.1,一般为 localhost
$dbport = '3306'; // MySQL 数据库服务器端口号,一般为 3306
$dbuser = 'vlee'; // MySQL 数据库用户名
$dbpw = '密码正确'; // MySQL 数据库密码
//==============================================================================
$source_dbname = 'vlee'; // pw 数据库名
$source_tablepre = 'pw_'; // pw 数据表前缀
$source_charset = 'gbk'; // pw 论坛数据库字符集
// 如果您的 MySQL 为 4.1 及以上版本 请务必正确填写
//==============================================================================
$discuz_dbname = 'test'; // Discuz! 数据库名
$discuz_tablepre = 'cdb_'; // Discuz! 数据表前缀 默认为:cdb_
// 请确保同 Discuz! 的 config.inc.php $tablepre 设置是一样的
$discuz_charset = 'utf8'; // 如果您的 MySQL 为 4.1 及以上版本 请根据您的 Discuz! 数据库字符集进行设置
// 可选 'gbk', 'big5', 'utf8', 'latin1'
//==============================================================================
$rpp = '5000'; // 每次需要转换的数据量,如果您的服务器比较慢,请将这个值调小
$reportfile = 'report.htm'; // 用来记录转换结果分析报告,该文件所在目录须具有可写权限
$debug = '0'; // 是否开启调试模式,当且仅当转换不能顺利完成时打开
//参数设置完毕===================================================================
?> |