文件的编解码操作需要借助中间类NSData
NSString *s = @"tsdfsdfsdfsdf";
NSData *data = [s dataUsingEncoding:NSUTF8StringEncoding];
s = [[NSString alloc] initWithData:data encoding:(NSUTF8StringEncoding)];
时间: 2024-10-11 22:19:05
文件的编解码操作需要借助中间类NSData
NSString *s = @"tsdfsdfsdfsdf";
NSData *data = [s dataUsingEncoding:NSUTF8StringEncoding];
s = [[NSString alloc] initWithData:data encoding:(NSUTF8StringEncoding)];