Hi, Dan-san
which will construct a string by interpreting the bytes in the default
encoding. The default encoding on Android is UTF-8, so this is
probably not what you want.
I do understand the reason that a part of the input string is
corrupsed.
Thanks,
Hiroyuki
On Tue, Jun 30, 2009 at 8:16 PM, Hirohiroy...@hotmail.com wrote:
I can resolve this by omitting the input parametter in getBytes as
follows.
unicode = new String(unicode.getBytes(), ISO-2022-JP);
It seems to me getBytes(ISO-2022-JP) won't work...
Upon rereading your example, it's not clear
On Sun, Jun 28, 2009 at 8:18 PM, Hirohiroy...@hotmail.com wrote:
I've changed as follows.
unicode = new String(unicode.getBytes(ISO-2022-JP), ISO-2022-JP);
However it won't convert the string as I expect...
That's vexing. Can you please file a bug including a complete
compilable/runnable
I can resolve this by omitting the input parametter in getBytes as
follows.
unicode = new String(unicode.getBytes(), ISO-2022-JP);
It seems to me getBytes(ISO-2022-JP) won't work...
Thanks,
Hiro
--~--~-~--~~~---~--~~
You received this message because you are
I've changed as follows.
unicode = new String(unicode.getBytes(ISO-2022-JP), ISO-2022-JP);
However it won't convert the string as I expect...
Thanks,
Hiro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
On Thu, Jun 25, 2009 at 8:31 PM, Hirohiroy...@hotmail.com wrote:
unicode = new String(unicode.getBytes(ISO2022JP),
I believe the encoding name you are looking for is ISO-2022-JP (with
dashes). The system should also recognize the name Shift_JIS (which
is a different encoding).
-dan
6 matches
Mail list logo