NSString *name = @"你好啊";
NSString *string = [NSString stringWithFormat:@"%@",name];
string = [string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"%@",string);
2023-12-15 08:49:15
NSString *name = @"你好啊";
NSString *string = [NSString stringWithFormat:@"%@",name];
string = [string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"%@",string);