I have a problem with sending SMS messages. I created a string with characters like "\uFDE8" (it's 65000). When I convert it back, I get 65000. It looks OK.
But when I send an SMS with this string and receive the message, I have this character replaced with "\uFFFD" (65533). This character is called a "replacement character".
Why was my character replaced?
//edit My solution is to convert each char of string to 7-bit and then send it. You must notice that gms alphabet is different from ascii (some chars needs to be replace to another). Good luck!
According to the Unicode table, U+FDE8
is not a valid codepoint.
As you would expect, any invalid character gets replaced by your provider's SMS system by U+FFFD
REPLACEMENT CHARACTER
�, which in itself is a valid Unicode character, but only exists to show that the original one cannot be properly represented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With