美文网首页
ios urlUncode

ios urlUncode

作者: Jelly_沫 | 来源:发表于2018-01-22 18:08 被阅读0次
    URLFragmentAllowedCharacterSet  "#%<>[\]^`{|}
    
    URLHostAllowedCharacterSet      "#%/<>?@\^`{|}
    
    URLPasswordAllowedCharacterSet  "#%/:<>?@[\]^`{|}
    
    URLPathAllowedCharacterSet      "#%;<>?[\]^`{|}
    
    URLQueryAllowedCharacterSet    "#%<>[\]^`{|}
    
    URLUserAllowedCharacterSet      "#%/:<>?@[\]^`
    
    NSString *unescaped = @"http://www";
    
    NSString *escapedString = [unescaped stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
    

    相关文章

      网友评论

          本文标题:ios urlUncode

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