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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment