morgana
19th September 2008, 19:24
Hello Dear Qt users.
I got some problem in QTextCodec Class.
I'm using Qt 4.4.1 default version.
QTextCodec *codec = QTextCodec::codecForName("EUC-KR");
codec is NULL what i missed?
My situation is like it.
1. I wrote code and complie in KDE(Kubuntu 8.04)
test result: It work.
2. same code complie in Windows XP
(Qt 4.4.1 Develop environment installed)
test result:It work.
3. I try test in another Windows Xp
(Qt 4.4.1 Develop environment is not installed)
test result: It doesnt' work.
I'm reconize codec is NULL(using gdb and
if(codec==NULL))
QList<QByteArray>temp=QTextCodec::availableCodecs();
for(int i=0; i<temp.size(); ++i)
{
qDebug()<<temp.at(i);
}
1, 2 environment show list of codecs. But, i can't see any codec name in 3 environment.
Is need something to use QTextCodec?
What i missed?
I got some problem in QTextCodec Class.
I'm using Qt 4.4.1 default version.
QTextCodec *codec = QTextCodec::codecForName("EUC-KR");
codec is NULL what i missed?
My situation is like it.
1. I wrote code and complie in KDE(Kubuntu 8.04)
test result: It work.
2. same code complie in Windows XP
(Qt 4.4.1 Develop environment installed)
test result:It work.
3. I try test in another Windows Xp
(Qt 4.4.1 Develop environment is not installed)
test result: It doesnt' work.
I'm reconize codec is NULL(using gdb and
if(codec==NULL))
QList<QByteArray>temp=QTextCodec::availableCodecs();
for(int i=0; i<temp.size(); ++i)
{
qDebug()<<temp.at(i);
}
1, 2 environment show list of codecs. But, i can't see any codec name in 3 environment.
Is need something to use QTextCodec?
What i missed?