-2

I need a help ....I am trying to send the string like <ABCs> to the server but its showing error due to <> can any one tell me how do i send this string to server ASCII value for <> and my ABCs string as well ??? so the my final string is <ABCs>

Manos Nikolaidis
  • 21,608
  • 12
  • 74
  • 82

1 Answers1

0

If you are sure that problem is in "<>" characters, then you should encode string on one side, and then decode it on another.

See answers in here "How do I URL encode a string" to learn how to urlencode string in iOS.

If you will have this problem anyway, please show the way you are communicating with server.

Community
  • 1
  • 1
Yuriy Yakym
  • 3,616
  • 17
  • 30
  • Hi Thanks for your response your way is also good but i did simple using "stringByReplacingOccurrencesOfString" i replace the string .........and it worked .... – Kuldeepsingh Rajput Oct 15 '15 at 10:59