
Originally Posted by
cristiano
SET client_encoding TO 'UNICODE';
SET
OK, so IMO there shouldn't be any problem with the database.
What does this program output?
#include <QCoreApplication>
#include <QTextCodec>
#include <QtDebug>
int main( int argc, char ** argv )
{
}
#include <QCoreApplication>
#include <QTextCodec>
#include <QtDebug>
int main( int argc, char ** argv )
{
QCoreApplication app( argc, argv );
qDebug() << QTextCodec::codecForLocale()->name();
}
To copy to clipboard, switch view to plain text mode
Do you use QString::fromUtf8(), QString::toUtf8() and similar methods in your program?
Do you use any static or global variables that have something to do with the database handling?

Originally Posted by
cristiano
The data come incorrect
It doesn't matter, the most important part is that PostgreSQL wants to talk with you in Unicode.
Bookmarks