Removing hexadecimal UTF-8 characters in java
<p>I know this question has been asked before, but none of the solutions seemed to work for this particular problem.
My Java application receives a username from another server. The username sometimes contains the hexadecimal representation of UTF-8 characters.</p>

<p>For example: "Féçon" comes in as F\C3\A9\C3\A7on.</p>

<p>None of the examples I found on this site (most of them use "getBytes") worked. No idea why.</p>

<p>So my question is: if you have defined a String with these characters, how can you remove them so it looks right again? You can try it yourself by using the following:</p>

<p>String test = "F\C3\A9\C3\A7on"</p>

<p>thanks!
Mike</p>
