iOS //x开头编码字符转中文
NSString *ssid = @"//xe6//x9d//xa8//xe7//xb4//xab";
ssid = [ssid stringByReplacingOccurrencesOfString:@"//x" withString:@"%"];
ssid = [ssid stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *ssid = @"//xe6//x9d//xa8//xe7//xb4//xab";
ssid = [ssid stringByReplacingOccurrencesOfString:@"//x" withString:@"%"];
ssid = [ssid stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
共有 0 条评论