I am sending the URL of the encoded data to the jsp page (Tomcat Behind) from my iphone application (encoded using the following method):
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc NS_AVAILABLE(10_3, 2_0);
And String Encoding is used as parameter: NSUTF8StringEncoding
But for some reason, this data is incorrectly decoded.
Sample Text : Β₯Β£β¬>β¬Β£
Encoded: %C2%A5%C2%A3%E2%82%AC%3E%E2%82%AC%C2%A3
Received on Cell As SMS: Β₯ Β£ Ξ¦ > Ξ¦ Β£
So, it seems that a few characters are not encoded / decoded.
Any idea what I am missing?
source
share