[icq-devel] Trouble with Sweidsh characters

christophe.minguet (freesurf) c.minguet at freesurf.fr
Mon Jun 30 21:10:37 CEST 2003

Hi Mikael ! 
I had same problem with french characters ...
It's cause they are encoded in UNICODE16 (i'm right ?)
So i had to change encoding .

In Java i use this :

  import sun.io.*;

  public static char[] unicodeToUTF8(char[] data)
      ByteToCharUTF8 converter=new ByteToCharUTF8();
      return converter.convertAll(Utils.toBytes(data));
    catch (Exception e)
      return data;

Hope it will help ;)

Good luck ! 

More information about the icq-devel mailing list