php - Encoding for SMS messages -


I am currently creating an application that uses users to send SMS messages. But I'm having some problems with the encoding of messages. Probably metonizing; I am using to connect with their API.

A simple text message of 160 characters has been divided into 3 different messages. According to Nexmo support, this is due to the encoding of the message, so I received information about encoding to provide me some more information:

The maximum number of messages per message depends on the encoding Is: - 160 characters (such as Latin-1/9 and GSM 8) for 7-bit encoding - 140 characters for 8-bit encoding (binary) - 70 characters for 16-bit encoding (Unicode)

The maximum number of messages inserted The number depends on encoding: - 153 characters for 7-bit encoding (such as Latin-1/9 and GSM 8) - 134 for 8-bit encoding (binary) - 67 for 16-bit encoding (Unicode) Letter

When I use 7 BIT encoding ( mb_convert_encoding ('message', '7bit') ), the entire message will be sent as a text message Is known ... But "ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ,Â", "¹" is removed from the message to include this chromatogram There should be a method and still sending the message as 1 message and not 3. And right? But how?

I hope that anyone here can help with this problem, here As long as Nexmo's support will also take a step back from this encoding issue: P

If you use them It is necessary that there is no way around the letter 8-bit encoding and thus there are fewer characters.

The same thing happens when your SMS shows the use of the current character on your mobile, then whenever you are not using the characters described in GSM 8 encoding, the character count is too high She goes.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -