-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MKRGSM bug with accents #101
Comments
Following up. The following sentence: Going further, the following accented letters return as HEX values The following accented characters are completely deleted from the string if used by themselves: The latter are all part of the GSM_7 Encoding: https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38 Please let me know how to force the arduino to output Hex values instead of characters regards |
Hi @zolanet like replied here #31 for the special character, we doesn't support the extended character set because the read() function use a buffer of bytes, you could implement a logic that handles the unicode code points from the _incomingBuffer in the GSM SMS class, and recognize the characters that you need. |
Thanx for the reply @Rocketct,
if not, can you give a simple example. regards |
I would also welcome help here... @zolanet , have you found out the way to convert the special characters like you suggested above ? I am trying to convert special characters to ASCII to get human readable message rather than HEX code. Thanks |
sorry for late resposne, @zolanet you should check the value in incoming buffer like: let me find a working example i'll post as soon i'll find |
@zolanet i make some test i got the following results:
practically the one written above means:
the output enabling the at debug will be: without changing the set char: +CMGL: 2,"REC UNREAD","11111111",,"20/03/09,14:08:31+04" changing the set char: pay attention how "11111111" become "00310031003100310031003100310031" (removed my number, this an example i have check the duality and it works) where 0031=1 in the standard ISO-8859-1 notice that the difference between the first and the seconds read is the presence of 00E8 that is 'é' , the example i had used is the following :
|
hope this help |
Hi there, Thanks to information above! I managed to fix this by:
QUESTION
|
EDIT: also I made a function of the translator so you can send whatever data (like ie. the senderNumber) to it. |
Hello,
I will be using an Arduino MKR GSM 1400 on an installation that is in french.
I have come across a bug in the library where accents are not sent unless I use emojis:
using the receive SMS example https://www.arduino.cc/en/Tutorial/MKRGSMExamplesReceiveSMS
If I send the following message:
"Teste avec accès aux accents"
The Serial Monitor returns:
"Teste avec accs aux accents"
But if I send:
"Teste avec accès aux accents 😜"
The serial Monitor returns the following hex values:
"0054006500730074006500200061007600650063002000610063006300E80073002000610075007800200061006300630065006E007400730020D83DDE1C"
Which I can decode to:
"Teste avec accès aux accents 😜"
Is there a way to force hex values to be returned instead of text?
It's seems that it's the only way to get accents to show up...
Regards
Marc
The text was updated successfully, but these errors were encountered: