I am kinda starting to suspect that it is the Android phone I am using to test this with that is doing something wrong, but I would appreciate someone elses opinion.
I have not mapped any encoder, nor set any special setting related to character set.
- When sending the characters "ÆØÅ" to a mobile device, the user data in the SubmitSm request contains the bytes (in decimal): 28,11,14. This is correct according to GSM 03.38 7 bit character set.
- When sending the same characters from said mobile device back to the server, the user data in DeliverSm contains the bytes (in decimal) 198,216,197. This corresponds to the character encoding of the extended ASCII set, for example ISO-8859-1.
- When sending messages from the server I specify DataCoding=Default in the builder, but for incoming messages I am not manually setting anything.
When receiving a message Inetlab.SMPP detects Default as the datacoding unless I add an emoji to the message before sending it from the mobile phone, Inetlab.SMPP correctly detects that the DataCoding is UCS2 and the message text is decoded to the correct scandinavian characters.
Appreciate any input here, thanks!