Scala convert string between two charsets
<p>I have a misformed UTF-8 string consisting that should be written "Michèle Huà" but outputs as "MichÃ¨le HuÃ"</p>

<p>According to this table it is a problem between Windows-1252 and UTF-8
<a href="http://www.i18nqa.com/debug/utf8-debug.html" rel="nofollow">http://www.i18nqa.com/debug/utf8-debug.html</a></p>

<p>How do I make conversion?</p>

<pre><code>scala&gt; scala.io.Source.fromBytes("MichÃ¨le HuÃ".getBytes(), "ISO-8859-1").mkString
res25: String = MichÃÂ¨le HuÃ

scala&gt; scala.io.Source.fromBytes("MichÃ¨le HuÃ".getBytes(), "UTF-8").mkString
res26: String = MichÃ¨le HuÃ

scala&gt; scala.io.Source.fromBytes("MichÃ¨le HuÃ".getBytes(), "Windows-1252").mkString
res27: String = MichÃƒÂ¨le HuÃƒ
</code></pre>

<p>Thank you</p>