Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SMS Text message - do line breaks count as characters?

Tags:

sms

I'm developing a system to integrate with an SMS API, and I was wondering whether or not newlines count towards the character limit, I can't find any documentation on this.

Thanks

like image 210
wyqydsyq Avatar asked Dec 01 '22 00:12

wyqydsyq


2 Answers

Yes, it does. ANY character you embed in the message counts against the limit, whether it's "visible" or not. Even if it's not a printable character, you've still sent that character across the cell network and caused the cell network to use up (as they claim) vast amounts of bandwidth that much be charged ludicrous rates to handle.

like image 190
Marc B Avatar answered Dec 28 '22 11:12

Marc B


Any character counts toward your SMS limit. Line breaks, included.

I actually can't find a standard or anything. But I do know the message size is limited to 160 7-bit characters, 140 8-bit characters, or 70 16-bit characters, depending on the alphabet used.

Sorry, I can't give you any sources.

like image 27
Logan Bibby Avatar answered Dec 28 '22 10:12

Logan Bibby