Handling CRLF in String
Hey guys, I read the forums alot, love them but this is my first post.
I have a string and I am replacing every space with a '+' but does anyone know how I can detect a carriage return and line feed (CRLF) within the string so I can replace this with a '+' much like the spaces?
Here's the code I'm using to replace every space with a +.
for (int x=0; outgoingSmsMsg.length(); x++ {
if (outgoingSmsMsg.charAt(x) == ' ' {
outgoingSmsMsg = outgoingSmsMsg.replace(' ', '+');
}
}
Regards,
Digi.

