I got an unicode string from an external server like this:
005400610020007400650020007400ED0020007400FA0020003F0020003A0029
and I have to decode it using java. I know that the ‘\u’ prefix make the magic (i.e. ‘\u0054’ -> ‘T’), but I don’t know how transform it to use as a common string.
Thanks in advance.
Edit: Thanks to everybody. All the answers work, but I had to choose only one 🙁
Again, thanks.
It looks like a UTF-16 encoding. Here is a method to transform it:
}
Your example returns “Ta te tí tú ? :)”