How can i remove the carriage return from my NSString???
I tried :
str = [str stringByReplacingOccurrencesOfString:@"\n" withString:@""];
but that didn't remove it
I get an error on this, it won't build
'\u000A' is not a valid universal character
'\u000B' is not a valid universal character
'\u000D' is not a valid universal character
'\u0085' is not a valid universal character
I would like to also display on the web a text composed on the iPhone.
The problem is that when I display it on a web text area all newlines are turned into %10.
Conversely when I write the text on the web it get displayed correctly on the iPhone.
The question is what operation should I make to the NSString before submitting it to the sql server so to replace the %10's with more portable characters.
I would like to also display on the web a text composed on the iPhone.
The problem is that when I display it on a web text area all newlines are turned into %10.
Conversely when I write the text on the web it get displayed correctly on the iPhone.
The question is what operation should I make to the NSString before submitting it to the sql server so to replace the %10's with more portable characters.
Hi, can you post some examples of what is happening please ?
web -> iPhone and iPhone -> web
I would like to also display on the web a text composed on the iPhone.
The problem is that when I display it on a web text area all newlines are turned into %10.
Conversely when I write the text on the web it get displayed correctly on the iPhone.
The question is what operation should I make to the NSString before submitting it to the sql server so to replace the %10's with more portable characters.
If you have problem/question don't just post it in any random thread. Create a new thread for it. If some other thread is relevant, link to it.