Public bug reported:

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" }"

** Affects: qjson (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/903539

Title:
  qjson in ubuntu cannot deal with unicode characters correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qjson/+bug/903539/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to