FONA GSM module and utf-16 encoding

Status
Not open for further replies.

webline

Member
Hi,

I attached a Adafruit Fona 800 module to a Teensy 3.6 with no problems. Works fine.

My problem now - if a SMS contains an emoji the whole SMS will be encoded using utf-16.

So "hello :)" (Smiley not typed as a string, but as an emoji) will be received as "00480061006C006C006F0020D83DDE42".

I'm looking for an easy solution to remove the emoji and convert the received message into a char array.

Thanks!

Detlef
P.S.: And I think I need to find a way to detect if I got an ASCII or UTF-16 encoding. Otherwise I would convert the ASCII test too?!
 
Status
Not open for further replies.
Back
Top