+ (NSString*)_859ToUTF8:(NSString*)oldStr
{
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingISOLatin1);
return [NSString stringWithUTF8String:[oldStr cStringUsingEncoding:enc]];
}
+ (NSString*)_859ToUTF8:(NSString*)oldStr
{
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingISOLatin1);
return [NSString stringWithUTF8String:[oldStr cStringUsingEncoding:enc]];
}
本文标题:iOS-ios-8859-1转码utf-8
本文链接:https://www.haomeiwen.com/subject/trpncqtx.html
网友评论