January 29th, 2014, 09:49 PM
SMS is ASCII not HTML, use line break characters.
What does it mean?
Does it mean line break in \n ?
Why can't I find line break here Thanks
January 30th, 2014, 01:32 AM
There is no line break character. There's a carriage return (CR aka "\r") and a line feed (LF aka "\n"). Different systems combine those in different ways to represent a line break. Usually it's either a single LF or a CR LF.
I have no idea which one is used for SMS or if there's even a common standard.
January 30th, 2014, 04:01 AM
Originally Posted by Jacques1
Where did you learn EVERYTHING? I am not joking. Where and how did learn programming? You're like Jesus.
February 4th, 2014, 03:56 PM
The standard character set for SMS messages from GSM phones is GSM 03.38. It contains CR and LF characters, so whatever library you are using to send SMS messages should properly convert CR and LF to their equivalents. Whether you should use CR, LF, or CR-LF is going to depend on the device that's used to view the SMS (and some mobile devices may not even respect the CR or LF characters, replacing them with spaces instead).
In any case, the point of the quote you posted was that you shouldn't use HTML code such as <p> or <br> or <br/> in SMS messages. It won't render, it'll just appear in the SMS message as text.