如何在Swift中将字符串转换为unicode(UTF-8)字符串?
在目标中我可以像这样写smth:
NSString *str = [[NSString alloc] initWithUTF8String:[strToDecode cStringUsingEncoding:NSUTF8StringEncoding]];
如何在Swift中做类似的smth?
unicode utf-8 utf-16 ios swift
ios ×1
swift ×1
unicode ×1
utf-16 ×1
utf-8 ×1