[android-developers] Re: JIS conversion is ignored!

2009-07-03 Thread Hiro
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

[android-developers] Re: JIS conversion is ignored!

2009-07-01 Thread Dan Bornstein
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

[android-developers] Re: JIS conversion is ignored!

2009-06-30 Thread Dan Bornstein
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

[android-developers] Re: JIS conversion is ignored!

2009-06-30 Thread Hiro
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

[android-developers] Re: JIS conversion is ignored!

2009-06-28 Thread Hiro
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

[android-developers] Re: JIS conversion is ignored!

2009-06-26 Thread Dan Bornstein
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