|
楼主 |
发表于 2004-7-8 21:17:53
|
显示全部楼层
最初由 dato 发表
针对konqueror gb18030patch能帖出来吗
一直以来都无法让它显示
--- kdelibs.orig/kdecore/kcharsets.cpp 2003-09-07 21:37:20.000000000 -0700
+++ kdelibs/kdecore/kcharsets.cpp 2003-10-15 18:16:20.000000000 -0700
@@ -552,8 +552,11 @@
if (name.isEmpty()) {
ok = false;
- return QTextCodec::codecForName("iso8859-1");
+ return QTextCodec::codecForLocale();
}
+
+ if ( name == "gb2312" )
+ name = "gb18030";
codec = QTextCodec::codecForName(name); |
|