Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 编码问题&;在webview中加载_Objective C_Ipad - Fatal编程技术网

Objective c 编码问题&;在webview中加载

Objective c 编码问题&;在webview中加载,objective-c,ipad,Objective C,Ipad,无论输入什么字符串,我都会在webview中显示 我正在对用户将在文本字段中输入的字符串进行编码 现在,当输入*/%@#这个键在文本字段中工作时,它的编码 并在webview中显示我输入的带有特殊字符的内容 当它出现时&它不显示在webview中 有人能帮我吗 @提前感谢&需要&;您是否能够在NSString和帖子的回复中验证这一点? NSString *URL=[NSString stringWithString:kSearchBarURL] ; NSMutableUR

无论输入什么字符串,我都会在webview中显示

我正在对用户将在文本字段中输入的字符串进行编码

现在,当输入*/%@#这个键在文本字段中工作时,它的编码

并在webview中显示我输入的带有特殊字符的内容

当它出现时&它不显示在webview中

有人能帮我吗


@提前感谢

&需要&;您是否能够在
NSString
和帖子的回复中验证这一点?
    NSString *URL=[NSString stringWithString:kSearchBarURL] ;

    NSMutableURLRequest *request =  [NSMutableURLRequest requestWithURL:[NSURL URLWithString:URL]];

    [request setHTTPMethod:@"POST"];

    [request setHTTPBody:[[NSString stringWithFormat:@"searchKeyword=%@",encodedString ] dataUsingEncoding:NSUTF8StringEncoding]];  

    debug(@"request to be made: %@",request);

    [iWebview loadRequest:request];