baksarbed / smspdu-cpp

Automatically exported from code.google.com/p/smspdu-cpp
0 stars 0 forks source link

Encode/decode special chars (á, é, ç, í, ...) #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

If you try to encode/decode special chars (á, é, ç, í, ...) you get some 
weird response. 

I am using Linux Ubuntu and the r20 of smspdu.

You have a really good thing going on here.
Thank you, 
Luís Marques

Original issue reported on code.google.com by euluisma...@gmail.com on 6 Aug 2011 at 12:17

GoogleCodeExporter commented 9 years ago
Hello, 

I am also trying to use this lib. It works very well with GSM encoding. 
Therefore, when I want to use the UCS2 encoding, I have an issue

Example : I want to send the following text "déjà vu". The lib is giving me 
this PDU : PDU Length: 23 
/07913366003000F011000B913396890885F40008AA0964C3A96AC3A0207675 while an online 
converter gives me : AT+CMGW=28 / 
07913366003000F011000B913396890885F40008AA0E006400E9006A00E0002000760075

I see the problem, the lib is coding on only one byte (code 20 for space 
instead of 0020 for example) so the pdu is misunderstood by the terminal.

Do you have any ideas how to solve this problem ?

Thanks a lot !

Gaël

Original comment by porteg...@gmail.com on 7 Jun 2013 at 7:51