iOS-ios-8859-1转码utf-8

+ (NSString*)_859ToUTF8:(NSString*)oldStr

{

    NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingISOLatin1);


    return [NSString stringWithUTF8String:[oldStr cStringUsingEncoding:enc]];

}

你可能感兴趣的:(iOS-ios-8859-1转码utf-8)