I am facing problems while converting UInt8 Byte array to string in swift. I have searched and find a simple solution
UInt8
String.stringWithBytes(buf
Swift 3
the following was giving me an error because of "NSUTF8StringEncoding":
String(data: nsdata, encoding: NSUTF8StringEncoding)!
this worked for me in swift 3:
let xmlStr:String = String(bytes: data!, encoding: String.Encoding.utf8)!