special characters, again
Posted: Thu Apr 29, 2010 2:19 am
Hi Alt,
How to send special chars like "^{}\[~]|" with the library?
I used testing string "$&,+/:;=?@<>-()#%{}|\^[]'~"
I tried Default, Latin1, OctetUnspecified encodings.
Default and Latin1 both cannot show "{}\|[]~".
While with OctetUnspecified encoding, I cannot open the message on my Nokia e71. Gave me error "Unable to open. Message format not supported." on the phone. But the characters did all show up correctly in the message preview of the Inbox. Just cannot open it.
I also used SmppClient.MapEncoding(DataCodings.Default, Encoding.Default) , and this allowed me to send "@","$"... using default encoding.
And I also searched the forum, tried GmsEncoding method found here http://www.inetlab.ru/support/viewtopic.php?t=626, and tried to set encoding as ASCII or Default, still not working.
And your answer here http://www.inetlab.ru/support/viewtopic.php?t=611 - Real SMPP client never use GSM coding. Conversion to GSM is performed only on SMSC side. - Which also suggest that we don't have to use previous GsmEncoding method during sending.
Run out of ideas. Please advise.
my send message code snippet:
Thanks.
K
How to send special chars like "^{}\[~]|" with the library?
I used testing string "$&,+/:;=?@<>-()#%{}|\^[]'~"
I tried Default, Latin1, OctetUnspecified encodings.
Default and Latin1 both cannot show "{}\|[]~".
While with OctetUnspecified encoding, I cannot open the message on my Nokia e71. Gave me error "Unable to open. Message format not supported." on the phone. But the characters did all show up correctly in the message preview of the Inbox. Just cannot open it.
I also used SmppClient.MapEncoding(DataCodings.Default, Encoding.Default) , and this allowed me to send "@","$"... using default encoding.
And I also searched the forum, tried GmsEncoding method found here http://www.inetlab.ru/support/viewtopic.php?t=626, and tried to set encoding as ASCII or Default, still not working.
And your answer here http://www.inetlab.ru/support/viewtopic.php?t=611 - Real SMPP client never use GSM coding. Conversion to GSM is performed only on SMSC side. - Which also suggest that we don't have to use previous GsmEncoding method during sending.
Run out of ideas. Please advise.
my send message code snippet:
Code: Select all
if (coding == DataCodings.Default)
{
//mapEncoding, allow default encoding shows "@" char
SmppClient.MapEncoding(DataCodings.Default, Encoding.Default);
}
List<SubmitSm> req = this.SmppClient.PrepareSubmit(
mode,
srcTon,
srcNpi,
srcAddr,
destTon,
destNpi,
destAddr,
coding,
smsMessage);
this.SmppClient.SubmitAsync(req);
K