Re: [Interest] Preventing QUrl from encoding query parameters

2014-08-02 Thread Thiago Macieira
On Saturday 02 August 2014 13:26:15 Lorne Sturtevant wrote: > On 08/02/2014 11:27 AM, Dmitriy Purgin wrote: > > Hi, > > > > If you pass this raw QString or QByteArray somewhere, why use QUrl > > > > then? Anyway, try QUrl::fromPercentEncoding(): > > QUrl url("http://example.com?query=[{\"name

Re: [Interest] Preventing QUrl from encoding query parameters

2014-08-02 Thread Lorne Sturtevant
On 08/02/2014 11:27 AM, Dmitriy Purgin wrote: > Hi, > > If you pass this raw QString or QByteArray somewhere, why use QUrl > then? Anyway, try QUrl::fromPercentEncoding(): > > QUrl url("http://example.com?query=[{\"name\":\"value\"}]";); > qDebug() << QUrl::fromPercentEncoding(url.toEncoded

Re: [Interest] Preventing QUrl from encoding query parameters

2014-08-02 Thread Dmitriy Purgin
Hi, If you pass this raw QString or QByteArray somewhere, why use QUrl then? Anyway, try QUrl::fromPercentEncoding(): QUrl url("http://example.com?query=[{\"name\":\"value\"}]";); qDebug() << QUrl::fromPercentEncoding(url.toEncoded()); // produces: "http://example.com?query=[{"name":"