What is the Default Charset/Encoding of text messages on Android devices?

后端 未结 2 625
悲&欢浪女
悲&欢浪女 2021-01-21 02:34

If necessary to keep it simple I am primarily concerned with English handsets in North America.

Specifically- when sending/recieving SMS and MMS messages, how are the ch

相关标签:
2条回答
  • 2021-01-21 03:00

    The short answer for the US is GSM 03.38 and UTF-16BE if you use Emojis or text that GSM 03.38 cannot encode directly.

    When sending/receiving SMS the encoding is definitely not UTF-8 since that isn't supported by the PDU or the SMPP protocol. Search for the SMPP spec for clarification on what is supported. Out of all supported encodings, the only Unicode compatible option is UCS-2BE. My observation is that most phones (includes all Android and iPhone) just assume this is actually UTF-16BE because it allows for the complete Unicode character set (including things like Emojis

    0 讨论(0)
  • 2021-01-21 03:09

    Quote:
    The platform's default charset is UTF-8. (This is in contrast to some older implementations, where the default charset depended on the user's locale.)

    More information can be found here: Charset| Android Developers

    0 讨论(0)
提交回复
热议问题