The document http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
says that the GWT supports constructor String(byte[] bytes, String
charsetName) .
But when I try to use it with charset Windows-1251 (cp866 etc - this
charsets include non-ASCII symbols) in production mode on tomcat, I
get JS exception.
What is it?
Thanks in advance.
http://www.google.com/url?sa=D&q=http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/java/lang/String.java%23304&usg=AFQjCNHIZskMG6PXNz1JAwNxsuzkOZQcdA
javaDoc is very useful.
On 14 дек, 16:53, Thomas Broyer <t.bro...@gmail.com> wrote:
> The only supported charsets are UTF-8 and ISO-8859-1.
>
> new String(new byte[] { 0xC3, 0xA9 }, "UTF-8") => "é"
> new String(new byte[] { 0xE9 }, "ISO-8859-1") => "é"
>
> Seehttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...