/**
* NSString 转换 UTF8声明
*/
+ (NSString *)UtfToString:(NSString *)newstring;
/**
* NSString 转换 UTF8实现
*/
+(NSString *)UtfToString:(NSString *)newstring{
return [newstring stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
}
时间: 2024-10-11 20:23:00