将任意编码的字符串转换为Objective-C中的NSString。
NSString* string = [IGAutoString stringWithData:data];
data
可以被任意编码的NSData编码。
如果您使用CocoaPods,请在Podfile中添加以下行:
pod ' IGAutoString'
否则,请将IGAutoString/IGAutoString.*
以及UniversalDetector添加到您的项目中。
MIT许可证。请参阅LICENSE。