title: Swift UTF8 encoding and non UTF8 character
body: <p>I've a some text from json file. In this text I've applied UTF8 encode but this encoder don't recognize a non standard character <code>àèìòù</code> and it's capital char, is there a method to purify my string?</p>
  
  <p>My function:</p>
  
  <pre><code>func stringToUTF8String (stringaDaConvertire stringa: String) -&gt; String {
      let encodedData = stringa.dataUsingEncoding(NSUTF8StringEncoding)!
      let attributedOptions = [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType]
      let attributedString = NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil, error: nil)!
      //println(attributedString.string)
      return attributedString.string
  }
  </code></pre>