I am using an API for sending SMS and I need to calculate number of SMSs in a message.
If the message uses only the GSM alphabet characters, it can be up to 160 characters in length but if a message contains any characters outside this alphabet, it will be encoded as Unicode (UCS-2) and then it can have only up to 70 characters in one SMS. When sending concatenated, i.e., multi-part messages, each part can be only up to 153 or 67 characters in length, respectively.
I am using C# to send messages, how can I check if the message will contain only GSM alphabet characters?