Receiving sms in hex encoding | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 13, 2018 ⬆ |
◄ ► |
Author | Message | |||
Alexey New member Username: Achrome Post Number: 1 Registered: 08-2017 |
I wrote a post-request for C # sending SMS with Russian text. string url = "http://localhost:8800"; using (var webClient = new WebClient()) { var pars = new NameValueCollection(); pars.Add("PhoneNumber", "+71234567891"); pars.Add("Text", "Пост запрос"); pars.Add("Binary", "0"); var response = webClient.UploadValues(url, "POST", pars); string str = System.Text.Encoding.UTF8.GetString(response); Console.WriteLine(str); Console.ReadKey(); } The message came on the phone in Hexadecimal. Tell me how to get SMS with Russian characters? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 5861 Registered: 08-2008 |
Hi, The first question I'd ask is if you can send that same text OK from the built-in web form. If OK, then the issue is that you are not using UTF-8 encoding for the Russian text input. Most likely, you are using KOI8-R...and just add a parameter charset=KOI8-R to tell NowSMS...or convert to UTF-8. If messages are not OK from the web interface, then we need details about your SMSC connection. -- Des NowSMS Support | |||
Alexey New member Username: Achrome Post Number: 2 Registered: 08-2017 |
The development environment C# by default uses UTF-8 encoding - 100%. Perhaps there are any settings in the application itself and it is in it that you need to find the reason? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 5863 Registered: 08-2008 |
Apologies for missing your follow-up. I asked if you can send that same text OK from the built-in web form (in NowSMS). How we troubleshoot the next step depends on that answer. -- Des NowSMS Support | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 5864 Registered: 08-2008 |
test reply | |||
Alexey New member Username: Achrome Post Number: 3 Registered: 08-2017 |
While I can not check - the development was suspended |