From 4544ec931f0cb05d28134dc770629668afe83e5f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 24 Apr 2012 13:33:16 +0200 Subject: Update the QUrl documentation concerning the encoding Looks like I failed to update this earlier, when the behaviour changed. Change-Id: Ic020c2a14d4e9153f2bc9d22d943a3a380c0851c Reviewed-by: Shane Kearns --- dist/changes-5.0.0 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index 617cf3e0dc..f4865da87b 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -625,6 +625,26 @@ Qt for Windows CE cleared). Any QPointers tracking a widget will NOT be cleared before the QWidget destructor destroys the children for the widget being tracked. +- QUrl + + * QUrl has been changed to operate only on percent-encoded + forms. Fully-decoded forms, where the percent character stands for itself, + are no longer possible. For that reason, the getters and setters with + "encoded" in the name are deprecated, except for QUrl::toEncoded() and + QUrl::fromEncoded(). + + QUrl now operates in a mode where it decodes as much as it can of the + percent-encoding sequences. In addition, the setter methods possess a mode + in which a '%' character not part of a percent-encoding sequence will cause + the parser to correct the input. Therefore, most software will not require + changes to adapt, since the getter methods will continue returning the + components in their most-decoded form as they did before and the setter + methods will accept input as they did before.. + + The most notable difference is when dealing with + QUrl::toString(). Previously, this function would return percent characters + in the URL by themselves. Now, it will return "%25", like + QUrl::toEncoded(). - QVariant -- cgit v1.2.3