URL参数的value为json数据,怎样定义这个url
展开全部
俗话说就是转义。
stringByAddingPercentEscapesUsingEncoding:
Returns
a representation of the receiver using a given encoding to determine
the percent escapes necessary to convert the receiver into a legal URL
string.
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding
Parameters
encoding
The encoding to use for the returned string.
Return Value
A
representation of the receiver using encoding to determine the percent
escapes necessary to convert the receiver into a legal URL string.
Returns nil if encoding cannot encode a particular character
stringByAddingPercentEscapesUsingEncoding:
Returns
a representation of the receiver using a given encoding to determine
the percent escapes necessary to convert the receiver into a legal URL
string.
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding
Parameters
encoding
The encoding to use for the returned string.
Return Value
A
representation of the receiver using encoding to determine the percent
escapes necessary to convert the receiver into a legal URL string.
Returns nil if encoding cannot encode a particular character
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询