You can't put utf-8 encoded strings in char*. I suggest you first learn what encoding are, why we use them and what each of them looks like before you try to solve your problem. Don't just blindly try things you don't understand.