Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encode String with UTF-8 in GWT

Tags:

utf-8

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")?

like image 891
P4ndaman Avatar asked Jul 16 '09 19:07

P4ndaman


1 Answers

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

like image 113
Hilbrand Bouwkamp Avatar answered Nov 02 '22 21:11

Hilbrand Bouwkamp