utf8-bin to french word
<p>i have data encoded with utf8-bin and i want to convert this data to french like this :
utf8-bin  ->  0x79756B686179796962<br>
the result suppose to be french word  -> avorté<br>
but i have this result  yukhayyib</p>

<pre><code>    public String convertStringToHex(String str){

      char[] chars = str.toCharArray();

      StringBuffer hex = new StringBuffer();
      for(int i = 0; i &lt; chars.length; i++){
        hex.append(Integer.toHexString((int)chars[i]));
      }

      return hex.toString();
  }
</code></pre>

<p>kindly could any one tell me what is wrong and what is the steps to convert this encoded word to french word ?
thanks </p>
