I just want to get the ASCII value of a single char string in Swift. This is how I\'m currently doing it:
var singleChar = \"a\" println(singleChar.unicodeSc
Swift 4
print("c".utf8["c".utf8.startIndex])
or
let cu = "c".utf8 print(cu[cu.startIndex])
Both print 99. Works for any ASCII character.