2-way SMS Going Out in Wrong Character Set

2-way SMS Going Out in Wrong Character Set SearchSearch
Author Message
John Roth
New member
Username: Ispeakgeek

Post Number: 4
Registered: 08-2006
Posted on Friday, August 18, 2006 - 05:57 am:   

Hello!

I'm trying to get my 2-way SMS working properly and I'm having an issue where the message going back to the handset is in the wrong charset.

Right now, I'm testing with a simple .NET page that returns a bit of text. For testing purposes, I have it returning the name of the encoding being used and the charset being returned, e.g.:

context.Response.ContentType = "text/plain";
context.Response.ContentEncoding = Encoding.UTF8;
context.Response.Charset = "utf-8";
context.Response.Write("REPLY WITH: ContentEncoding: ");
context.Response.Write(context.Response.ContentEncoding.ToString());
context.Response.Write("; Charset: ");
context.Response.Write(context.Response.Charset);


When I look at the SMSOUT log, it appears that NowSMS is receiving the text from my .NET page properly:

2006-08-18 05:12:01,44E53420.req,*.*.*.*,4477110*****,OK -- SMPP - *.*.*.*:*,SubmitUser=SomeUser;Sender=SomeSender;SMSCMsgId=**/**/******b*/1144771 10*****;DCS=11;Text="Out going message"
2006-08-18 05:12:09,44E53422.req,Auto-response to 447711*****,4477110*****,OK -- SMPP - *.*.*.*:*,SubmitUser=localsystem-2way;Sender=Test;SMSCMsgId=**/**/*****c**/11447 711*****;Text="REPLY WITH: ContentEncoding: System.Text.UTF8Encoding; Charset: utf-8"

But when it arrives on the handset it's gibberish. I've tried all sorts of combinations of charactersets and encodings, but they all end up doing the same thing. The only thing that I can think of is that the "Encode text messages with 7-bit packed encoding" option has to be set for this SMSC (which it is on the SMSC Advanced Properties dialog box), but that that setting isn't being respected for replies in 2-way messaging.

Any suggestions gleefully appreciated!

Cheers,

John
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6382
Registered: 10-2002
Posted on Friday, August 18, 2006 - 05:37 pm:   

Hi John,

You can send messages from the NowSMS "Send Text Message" web form without any problem?

I assume that is what the message above "Out going message" is doing? Why is that message being sent with DCS=11? Is it received ok if it is sent with default message class?

I cannot imagine why the response from a 2-way SMS command would be handled any differently than a message submitted normally via the web interface ... if the out log shows the correct message data.

I think I need to see more detailed debug logs showing exactly what is happening in your system.

Enable the SMSDEBUG.LOG on the "Serial #" page of the configuration dialog. Send a message normally, and then have another one be generated via the 2-way SMS facility. Then I would like to see both the SMSDEBUG.LOG and the SMPPDEBUG.LOG. If you don't want to post them here, please e-mail them to nowsms@now.co.uk with "Attention: Bryce" in the subject line. Include a reference to this thread, so that I can know why I asked to look at the debug logs.

-bn