美文网首页
stringByAddingPercentEscapesUsin

stringByAddingPercentEscapesUsin

作者: 三岁就很乖 | 来源:发表于2016-05-20 14:56 被阅读83次
    +(NSString *)strUTF8Encoding:(NSString *)str{
        
        
        return [str stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
       // return [str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    }
    
    
    

    相关文章

      网友评论

          本文标题:stringByAddingPercentEscapesUsin

          本文链接:https://www.haomeiwen.com/subject/ryjnrttx.html