jeudi 2 juin 2016

Convert string encoded in utf16 to string encoded in UTF-8

I have a string or a char[], but the data in it is encoding in utf-16, like this: enter image description here

now I want to convert it to utf-8 in a new string, Please help me! I already tried like this:

enter image description here

but the compiler tell me have a problem. I have no idea to solve this problem.

Aucun commentaire:

Enregistrer un commentaire