title: Decoding utf-8 different language characters in Ruby
body: <p>I have the following string: </p>
  
  <pre><code>"ë \u0088ì \u0084ë\u0093\u009C ì\u0098¤ë¸\u008C ê°\u0093(ë \u0088ì\u0098¤ê°\u0093)"
  </code></pre>
  
  <p>and I want the following output: </p>
  
  <pre><code>"레전드 오브 갓(레오갓)" 
  </code></pre>
  
  <p>I can do this using javascript, using the following tool </p>
  
  <p><a href="https://mothereff.in/utf-8" rel="nofollow">https://mothereff.in/utf-8</a> </p>
  
  <p>If you paste in </p>
  
  <pre><code>ë \u0088ì \u0084ë\u0093\u009C ì\u0098¤ë¸\u008C ê°\u0093(ë \u0088ì\u0098¤ê°\u0093)
  </code></pre>
  
  <p>In the "utf-8 encoded" box, you will get the following. </p>
  
  <pre><code>"레전드 오브 갓(레오갓)" 
  </code></pre>
  
  <p>My question is how do I do this in ruby? </p>
  
  <p>I have tried the following in ruby to no luck. </p>
  
  <pre><code>.encode('utf-8')
  
  .force_encoding("utf-8")
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>UPDATE: </p>
  
  <p>It seems like the string I have pasted doesn't work, that's due to some parsing happening when I paste it. 
  On the other hand I found the solution. </p>
  
  <pre><code>.encode('iso-8859-1')
  </code></pre>