title: Convert from iso-2022-jp to UTF in ruby
body: <p>I am getting a string from our mail server in iso-2022-jp, and I am having trouble converting it to UTF.</p>
  
  <pre><code>sub #=&gt; "=?iso-2022-jp?Q?Auto-Asia-JP-1=1B$B$N$4M=3DLsFbMF$N3NG'=1B(B?="
  sub.encoding  #=&gt; #&lt;Encoding:US-ASCII&gt;
  </code></pre>
  
  <p>I have tried using Encoding::Converter.</p>
  
  <pre><code>ec = Encoding::Converter.new("ISO-2022-JP", "UTF-8")
  ec.convert(sub)    #=&gt; "=?iso-2022-jp?Q?Auto-Asia-JP-1=1B$B$N$4M=3DLsFbMF$N3NG'=1B(B?="
  </code></pre>
  
  <p>I have also tried leaving off the first part of the string, the last part of the string, and every combination in between. Ruby thinks that sub is ASCII, but if I try to tell it that it is ISO-2022-JP by using force_encoding then it spits out garbage.</p>