P4ndaman
P4ndaman

Reputation: 361

Encode String with UTF-8 in GWT

Is there a way to encode a String with UTF-8 in GWT? In other words, is there a GWT-compatible equivalent to java.net.URLEncoder.encode(toEncode, "UTF-8")?

Upvotes: 5

Views: 12870

Answers (1)

Hilbrand Bouwkamp
Hilbrand Bouwkamp

Reputation: 13519

Yes, it's com.google.gwt.http.client.Url.encode(), JavaDoc: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/http/client/URL.html

Upvotes: 12

Related Questions