How to convert incoming UNICODE SMS

How to convert incoming UNICODE SMS SearchSearch
Author Message
Marko
New member
Username: Bubbi

Post Number: 1
Registered: 05-2007
Posted on Thursday, May 17, 2007 - 08:36 am:   

Hi,

I'm just trying NowSMS as possible solution for my client and I'm stuck with receiving Unicode SMS. Sending is OK becuase NowSMS is taking care of that. Can you give me any direction how to get real chars that were send. For example I send ćčđšž and I get "Čćđšž" or something like that!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7248
Registered: 10-2002
Posted on Thursday, June 21, 2007 - 09:44 pm:   

Hi,

By default we use the UTF-8 character set for passing characters to a 2-way command.

So you're probably just not expecting that encoding.

It is possible to change this character set (and it will apply for all 2-way commands), by changing the "Character Set" field on the "2-way" page of the NowSMS configuration dialog.

Or if you are using a version of NowSMS that does not have that configuration setting, you can edit SMSGW.INI, and under the [SMSGW] header, add:

ReceiveSMSCharset=xxxxxxx

We support a variety of different character sets (built in ones like iso-8859-1, iso-8859-2, iso-8859-4 thru 9, big5, gb2312, shift-jis, but also any defined in the Windows registry).

-bn
Marko
New member
Username: Bubbi

Post Number: 10
Registered: 05-2007
Posted on Wednesday, June 27, 2007 - 10:44 am:   

I set it up for windows-1250 encogin and its working fine now.
Simranjit Singh
New member
Username: Manchanda_17

Post Number: 5
Registered: 06-2007
Posted on Wednesday, June 27, 2007 - 03:43 pm:   

which setting i will used to send hindi msg
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7288
Registered: 10-2002
Posted on Wednesday, June 27, 2007 - 06:54 pm:   

Windows-1250 should be good for Central & Eastern Europe if your application is working in a localised code page.

Regarding Hindi, I am not aware of any localised code page for that language. To the best of my knowledge, I believe you want to use UTF-8 encoding with Hindi. UTF-8 is the native character set that NowSMS uses when sending or receiving SMS via HTTP. The above description explains how the character set can be changed for receiving messages via the 2-way command facility.

To explicitly set a character set when submitting an SMS message to NowSMS via HTTP URL submission, include "&charset=xxxxxxxx" in the URL parameters where xxxxxxxx is the desired character set name.

If you are using the NowSMS web form "Send Text Message", that web form automatically instructs the browser to submit the text using UTF-8 text encoding.