You need to use the stringByReplacingPercentEscapesUsingEncoding:NSUTF 8StringEncoding function.
Quote:
Originally Posted by tateyaku
In my app, a user clicks a cell to view a detail screen which pulls information from a php page that generates xml. Everything is working great, except for the table cell's values that have spaces in it.
When there is a space, the value is still sent to the detail page, and sent to the php page, but it doesn't show up correctly. When I type the value into the php and use the app to send any information then it works great.
Is there a piece of coding I type in the app to make the submitted value a certain type, like unicode? Or can I type something in the php page that will translate it into normal text? I've been searching for hours, but I just don't know what to search for to find this answer.
Please help! 
|