On 16/07/2019 13:05, Carlos E.R. wrote:
> On 15/07/2019 23.03, Pamela wrote:
>> Is a new line in a text message counted as one character?
>>
>> On Android I would use a line break or "return" -- not a row of spaces.
>
> A new line is a single char, or maybe two (CR+LF). You simply need to
> press the "enter" button, unless you configured your phone to send
> automatically on "enter". It is never a row of spaces - but if you type
> a row of spaces you will be charged for them.
>
> That is, you will be charged if the total count of characters you type,
> including the spaces and new lines add up to one more SMS.
>
>>
>> Or does some special pricing apply?
>
> No. What matters is the total count of characters you type, visible and
> invisible. There is a max number per SMS, 153 chars.
It's a little more complicated than this....
An SMS has a maximum of 140 bytes - this is a hard limit imposed by the
original protocol used to carry it.
Basically SMS was an after-thought of what to do with some additional
bandwidth on the channel it is carried on, and that channel had a
maximum packet size of 255 bytes which once you take out maximum address
lengths and headers etc gets you to 140 bytes.
For "normal" messages, this translates to 160 characters as long as
those characters are contained in the 3GPP/GSM alphabet (which for those
who are very interested can be found in 3GPP 03.38). These characters
are encodeed using 7 bits (so 8 (bits in a byte) / 7 (bits in a
character) * 140 (bytes in a message) = 160 characters).
Some later versions of the protocol can also use 8 bit encoding,
translating to 140 characters.
In the case of using special characters, emoji or certain accented
characters for example, these are encoded as 2 bytes, giving a limit of
70 characters. If you just use one character like this the entire
message is encoded this way.
If that isn't confusing enough, there are some options that can shorten
it by a small amount depending on specific circumstances....