title: decode base64 string as UTF-8
body: <p>I am using the base64 implementation at the bottom of <a href="http://www.cocoadev.com/index.pl?BaseSixtyFour" rel="nofollow">this post</a>.</p>
  
  <p>If I use following code:</p>
  
  <pre><code>NSLog(@"decoded:%@",[[[NSString alloc] initWithData:[Base64 decode:@"8fEmIzEyNDA3OyYjMTI0MTE7"] encoding:NSUTF8StringEncoding] autorelease]);
  </code></pre>
  
  <p>I get <code>decoded:(null)</code></p>
  
  <p>However, if I use:</p>
  
  <pre><code>NSLog(@"decoded 1:%@",[[[NSString alloc] initWithData:[Base64 decode:@"8fEmIzEyNDA3OyYjMTI0MTE7"] encoding:NSASCIIStringEncoding] autorelease]);
  </code></pre>
  
  <p>I get <code>decoded:ññ&amp;#12407;&amp;#12411;</code></p>
  
  <p>But I should get <code>decoded:ññぷほ</code></p>
  
  <p>What am I doing wrong?</p>