在GWT中使用UTF-8编码字符串

时间:2023-01-04 19:57:31

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

有没有办法在GWT中使用UTF-8编码String?换句话说,是否存在与java.net.URLEncoder.encode(toEncode,“UTF-8”)兼容的GWT?

1 个解决方案

#1


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

是的,它是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

#1


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

是的,它是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