引用:
|
$dbhost = 'localhost'; // database server // 数据库服务器 $dbuser = 'root'; // database username // 数据库用户名 $dbpw = 'abcd'; // database password // 数据库密码 $dbname = 'bbs'; // database name // 数据库名 $adminemail = 'sweter.chen@gmail.com'; // admin email // 论坛系统 Email $dbreport = 0; // send db error report? 1=yes // 是否发送数据库错误报告? 0=否, 1=是 // [EN] If you have problems logging in Discuz!, then modify the following parameters, else please leave default // [CH] 如您对 cookie 作用范围有特殊要求,或论坛登录不正常,请修改下面变量,否则请保持默认 $cookiedomain = ''; // cookie domain // cookie 作用域 $cookiepath = '/'; // cookie path // cookie 作用路径 // [EN] Special parameters, DO NOT modify these unless you are an expert in Discuz! // [CH] 以下变量为特别选项,一般情况下没有必要修改 $headercharset = 0; // force outputing charset header // 强制设置字符集,只乱码时使用 $errorreport = 1; // reporting php error, 0=only report to admins(safer), 1=report to all // 是否报告 PHP 错误, 0=只报告给管理员和版主(更安全), 1=报告给任何人 $forcesecques = 0; // require security question for administrators' control panel, 0=off, 1=on // 管理人员必须设置安全提问才能进入系统设置, 0=否, 1=是 $onlinehold = 900; // time span of online recording // 在线保持时间 $pconnect = 0; // persistent database connection, 0=off, 1=on // 数据库持久连接 0=关闭, 1=打开 // [EN] !ATTENTION! Do NOT modify following after your board was settle down // [CH] 论坛投入使用后不能修改的变量 $tablepre = 'cdb_'; // 表名前缀, 同一数据库安装多个论坛请修改此处 // table prefix, modify this when you are installingmore than 1 Discuz! in the same database. $attachdir = './attachments'; // 附件保存位置 (服务器路径, 属性 777, 必须为 web 可访问到的目录, 不加 "/", 相对目录务必以 "./" 开头) // attachments saving dir. (chmod to 777, visual web dir only, ending without slash $attachurl = 'attachments'; // 附件路径 URL 地址 (可为当前 URL 下的相对地址或 http:// 开头的绝对地址, 不加 "/") // [EN] !ATTENTION! Preservation or debugging for developing // [CH] 切勿修改以下变量,仅供程序开发调试用! $database = 'mysql'; // 'mysql' for MySQL version and 'pgsql' for PostgreSQL version // MySQL 版本请设置 'mysql', PgSQL 版本请设置 'pgsql' $charset = 'gbk'; // default character set, 'gbk', 'big5', 'utf-8' are available // 论坛默认字符集, 可选 'gbk', 'big5', 'utf-8' $attackevasive = 0; // protect against attacks via common request, 0=off, 1=cookie refresh limitation, 2=deny proxy request, 3=both // 防护大量正常请求造成的拒绝服务攻击, 0=关闭, 1=cookie 刷新限制, 2=限制代理访问, 3=cookie+代理限制 $tplrefresh = 1; // auto check validation of templates, 0=off, 1=on // 模板自动刷新开关 0=关闭, 1=打开 // ============================================================================ |
接下去我的任务是先将Discuz!4.0_GBK当中的数据转成utf-8,我用的是joey的toutf8
这是ToUTF8当中的index.php配置情况:
引用:
|
// 论坛原来的编码 GBK/GB2312/BIG5 等 //如果您的服务器支持 iconv 函数则可转换任何其他编码,否则只支持 GB2312/BIG5. $charset = 'GBK'; // ###数据处理相关设置### $jtime = '0'; //页面跳转时间(对于个别空间刷新过快可能会禁止您访问,所以在您不确认时不要填写 0) $datelength = '102400'; //每次处理数据量(单位:字节) -- 如过您的服务器不支持iconv函数请将这个数值写小一些. // ###相关数据库信息### $dbhost = 'localhost'; // 主机 $dbusername = 'root'; // 访问数据库的用户名 $dbpassword = 'abcd'; // 密码 $dbname = 'BBS'; // 数据库名 $dbcharset = 'utf8'; // 若为 MySQL 4.1+,数据库的 character set |
转完D4的数据库之后。我用impex1.76来将D4的数据库汇入vBulletin3.5.3当中,进入vBB显示全部为乱码!
这个问题已经困扰我好几天了,我真的不知道如何是好。这事情我已经弄了好几天了都没有搞好,所以只好发贴求助了。希望大家可以帮助我一下。
我把我的环境说明一下:
MySQL 4.1.9
phpMyAdmin 2.6.1
PHP Version 4.3.10
支持iconv
apache 1.3.33
本人QQ:87077776 24小时在线
希望转换成功的朋友帮助小弟一把。








『求助』Discuz!4.0_GBK 转 vBulletin 3.5.3问题










平板模式