I'm sorry I don't get what you're actually complaining about.
http://www.gwtproject.org/javadoc/latest/com/google/gwt/http/client/URL.html
Only the deprecated methods have that note in their javadoc, and the 
behavior was historically meant for query-string processing (for the 
majority of cases where the query-string uses key-value pairs with an 
encoding similar to application/x-www-form-urlencoded, as with HTML forms 
with method="GET"), non-deprecated methods are clear about their intent and 
expected usage: encodeQueryString vs. encodePathSegment.
See also https://github.com/gwtproject/gwt/issues/3379

On Wednesday, May 18, 2016 at 2:30:24 PM UTC+2, P.G.Taboada wrote:
>
> Hi,
>
>
> we are running into issues with URLs that get spaces encoded to "+". 
>
>
> In the javadocs I read:
>
>
> *Note: this method will convert any the space character into *
>
> *its escape short form, '+' rather than %20. *
>
> *It should therefore only be used for query-string parts.*
>
>
>
> This is wrong: the "+" means a space only in 
> application/x-www-form-urlencoded content.
>
> The method that allows us to use the correct behaviour
>
>
> public static String encodeComponent( String decodedURLComponent,  boolean 
> queryStringSpaces)
>
>
>
> is deprecated.
>
> The make it a "+" behaviour is the default one in the UrlEncoder in Java. 
> This class is either wrongly named or does the wrong thing.  I would guess 
> it is wrongly named, as the javadocs state that this class is for form 
> encoding.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to