Solved Is there an equivalent of curl_easy_escape()?
-
Hi all,
I'm rewriting a simple Linux C application that uses curl library.
In particular the original code filters the json data with curl_easy_escape(), so I'm wondering if Qt has an equivalent call.Thanks, regards
-
You can also take a look at QUrl::toPercentEncoding() which takes a QString and returns a QByteArray. Looks like this works on strings without expecting a valid url.
-
What does curl_easy_escape has to do with json?
This function converts the given input string to a URL encoded string and returns that as a new allocated string
--> Use QUrl
-
It converts the data string - it is a server requrement.
-
You can also take a look at QUrl::toPercentEncoding() which takes a QString and returns a QByteArray. Looks like this works on strings without expecting a valid url.