|
|
|
IOS/ iPhone when I search "c++" their showing result not found and UITextField consider "+" sign as a one space. |
|
|
|
|
|
|
|
escape the characters before send to php
Code (Objective-C)
NSString *unescaped = @"http://www";
NSString *escapedString = (NSString *)CFURLCreateStringByAddingPercentEscapes(
NULL,
(CFStringRef)unescaped,
NULL,
CFSTR("!*'();:@&=+$,/?%#[]"),
kCFStringEncodingUTF8);
// used var = escapedString
|
|
|
|
|
Date :
2013-07-29 16:13:33 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks mr.win
I can't understand this code can you please make it clear
|
|
|
|
|
Date :
2013-07-29 17:09:39 |
By :
vishwa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Escapes keyword before request search to PHP/MySQL
|
|
|
|
|
Date :
2013-07-29 17:19:05 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (Objective-C)
NSString *escapedString = (NSString *)CFURLCreateStringByAddingPercentEscapes(
NULL,
(CFStringRef)[txtKeyword text],
NULL,
CFSTR("!*'();:@&=+$,/?%#[]"),
kCFStringEncodingUTF8);
NSMutableString *post = [NSString stringWithFormat:@"keyword=%@",escapedString];
check syntax again.
|
|
|
|
|
Date :
2013-07-29 17:20:37 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks mr.win now working perfect.
|
|
|
|
|
Date :
2013-07-29 17:42:42 |
By :
vishwa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Very good
|
|
|
|
|
Date :
2013-07-29 17:47:16 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|