The String(byte[] bytes)
constructor and String.getBytes()
method are not implemented by GWT JRE emulation String class.
Does anybody know of an implementation? I do not want to use char[]
, But it seems like there is no other solution.
feedback
|
Good question. I didn't realize it before. as far as I know there is only 2 main method that convert byte array to String
Here is mine implementation. I think it may be helpful to you
You can test it :
| |||
feedback
|
The following code should work, just specify the number of bytes per character.
| |||||||
feedback
|
byte[]
from? – Peter Knego Jan 3 '11 at 14:14