Hi All,

   I have input string in japanese language, I am parsing string in UTF-8 encoding.

 

   String name = new String(japaneseString.getBytes(), "UTF-8");

 

    I got successfully converted the below japanese string:

    1) アップル

     2) 赤

     3) 世丕且且世两上与丑万丣丕且丗丕

     4) 世世丗丈

 

But, I got failures in below cases :

1) Input:  ひほわれよう        Output : �?��?��?れよ�?�

2) Input: 存在する               Output: 存在�?�る

 

It seems from above, some of the japanese characters are not converted properly.

Thanks

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners