URL encoding format

Source: Internet
Author: User

- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc;

Original explanation:
/* Adds All percent escapes necessary to convert the receiver into a legal URL string. Uses the given encoding to determine the correct percent escapes (returning nil if the given encoding cannot encode a part Icular character). See Cfurlcreatestringbyaddingpercentescapes in CFURL.h for more complex transformations
*/
Translation:
Add all the necessary escape percentages to convert the receiver into a valid URL string. Use the given encoding to determine the correct percentage to escape (returns 0 if the given encoding cannot encode a specific character). See Cfurl Cfurlcreatestringbyaddingpercentescapes. For more complex conversions

- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc;

Original explanation:
/* Replaces all percent escapes and the matching characters as determined by the given encoding. Returns Nil If the transformation is not possible (i.e. the percent escapes give a byte sequence not legal in the given EN Coding). See Cfurlcreatestringbyreplacingpercentescapes in CFURL.h for more complex transformations
*/
Translation:
Replaces the escaped percentage of all matching characters by the given encoding. Returns 0 if the conversion is not possible (that is, the percentage escapes to a sequence of bytes in the given encoding is not valid). See Cfurl Cfurlcreatestringbyreplacingpercentescapes. For more complex conversions
We get the backstage URL to splice and sometimes find that some can't be coded successfully
All we have to deal with

What else can't be understood can pay attention to me and then deal with US coding together

URL encoding format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.