Hello,
i'm trying to send POST request with international characters to my WebAPI.
I'm creating JSON from QString's and try to sent them by QNetworkAccessManager:ost method. Unfortunately my WebAPI (it's Java based) rejects QByteArray Utf8 encoding. Our API developer said that my application send JSON UTF8-CodeUnits-Escaped (i.e. "\xc4\x85\xc4\x99" as "Ä…Ä™") however WebAPI accepts only decoded strings (original like "Ä…Ä™") or Unicode code units ("\u0105\u0119").
How can I send post request in Unicode code units? And second question: how can I look into raw QNetworkAccessManager request? (text format like in CURL)




ost method. Unfortunately my WebAPI (it's Java based) rejects QByteArray Utf8 encoding. Our API developer said that my application send JSON UTF8-CodeUnits-Escaped (i.e. "\xc4\x85\xc4\x99" as "Ä…Ä™") however WebAPI accepts only decoded strings (original like "Ä…Ä™") or Unicode code units ("\u0105\u0119").
Reply With Quote
Bookmarks