Chinese characters?

Chinese characters? SearchSearch
Author Message
Aaron Chen
New member
Username: Myunji

Post Number: 1
Registered: 08-2009
Posted on Sunday, August 16, 2009 - 11:51 am:   

Hi,

I'm trying out Now SMS for my web application, and this is a problem that i encountered.

I've seen the example for 2-way SMS functions, and how to call a script to store your data in a database and so on. Did so, and most of it worked.

However, when i came across Chinese SMS (tried both Traditional Chinese and Simplified Chinese), Now SMS is able to receive the Chinese texts in the SMS correctly. But when it comes to the input to database part, the contents is parsed to my database, through a php script, with URL parameters.

And the problem is that, chinese characters cannot be parsed in URL parameters, when it goes into my database, it was junk text.

Any idea if i could use other methods to get my contents in, other than using URL parameters?
Aaron Chen
New member
Username: Myunji

Post Number: 2
Registered: 08-2009
Posted on Sunday, August 16, 2009 - 12:28 pm:   

Ok, an update, i tried to call and write into the database with command-line. Didn't work as well.

What is the default output encoding/charset for the @@SMS@@?
Aaron Chen
New member
Username: Myunji

Post Number: 3
Registered: 08-2009
Posted on Sunday, August 16, 2009 - 12:34 pm:   

Ok, an update, i tried to call and write into the database with command-line. Didn't work as well.

What is the default output encoding/charset for the @@SMS@@?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1146
Registered: 08-2008
Posted on Sunday, August 16, 2009 - 03:46 pm:   

Hi Aaron,

The default encoding is UTF-8, but it is configurable via a character set drop down list on the 2-Way configuration page.

Unfortunately 16-bit Unicode for command line apps is not supported...that would be a good idea. Over the years we've put more focus on the HTTP interface, so we hadn't even thought of that.

Anyway UTF-8 is the default and there are a variety of other character sets like big5 and gb2312 are selectable on the 2-way configuration page.

--
Des
NowSMS Support