I prepared following method to convert JIS character string to UTF8 on
Android SDK v.1.5..
However when I pass JIS character array into JIS the returned string
value is same as input.

I supposed it should return "undefined" or UTF8 string, Would anybody
tell me why this phenomena
is occurred?

    public String JIS2UNICODE(char[] jis) {
        String unicode = new String(jis);
        try {
            unicode = new String(unicode.getBytes("ISO2022JP"),
"ISO2022JP");
        } catch (Exception e) {
             unicode = "undefined";
       }

        return unicode;
   }



Thanks,
Hiro
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to