qjson in ubuntu cannot deal with unicode characters correctly

Bug #903539 reported by Xu Zhen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qjson (Ubuntu)
Undecided
Unassigned

Bug Description

I have the following codes:

QString data = QString::fromUtf8("\u6211");
QVariantMap obj = QVariantMap();
obj.insert("key", QVariant(data));
QJson::Serializer s;
QString json = s.serialize(obj);
qDebug() << json;

output with libqjson 0.7.1-6 in ubuntu's repository:
"{ "key" : "我" }"

output with qjson in gitorious repository ( git clone git://gitorious.org/qjson/qjson.git ):
"{ "key" : "\u6211" }"

Revision history for this message
Xu Zhen (xuzhen666) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments