swift String to UTF8编码 var testString:String = "wo shi string" var utf8String = (testString as NSString).UTF8String