有没有一种方法来编码与GWT UTF-8字符串? 换句话说,是否有一个GWT兼容相当于java.net.URLEncoder.encode(toEncode, “UTF-8”)?
Answer 1:
是的,这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
文章来源: Encode String with UTF-8 in GWT