title: Convert hex-encoded String to String
body: <p>I want to convert following hex-encoded <code>String</code> in Swift 3:</p>
  
  <pre><code>dcb04a9e103a5cd8b53763051cef09bc66abe029fdebae5e1d417e2ffc2a07a4
  </code></pre>
  
  <p>to its equivalant <code>String</code>:</p>
  
  <pre><code>Ü°J:\Øµ7cï  ¼f«à)ýë®^A~/ü*¤
  </code></pre>
  
  <p>Following websites do the job very fine:</p>
  
  <p><a href="http://codebeautify.org/hex-string-converter" rel="nofollow noreferrer">http://codebeautify.org/hex-string-converter</a></p>
  
  <p><a href="http://string-functions.com/hex-string.aspx" rel="nofollow noreferrer">http://string-functions.com/hex-string.aspx</a></p>
  
  <p>But I am unable to do the same in Swift 3. Following code doesn't do the job too:</p>
  
  <pre><code>func convertHexStringToNormalString(hexString:String)-&gt;String!{
    if let data = hexString.data(using: .utf8){
        return String.init(data:data, encoding: .utf8)
    }else{ return nil}
  }
  </code></pre>