Charset problem

Charset problem SearchSearch
Author Message
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 258
Registered: 10-2003
Posted on Thursday, February 23, 2006 - 10:06 pm:   

Hi B.

I got a huge problem sending out danish characters.
If i GET to nowsms writing "&text=æøå&charset=iso-8859-1". Nowsms changes this to "%C3%A6%C3%B8%C3%A5" whereas it should have been "%E6%F8%E5". I tried with other charsets but they either do not work or they do the same as iso-8859-1.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5559
Registered: 10-2002
Posted on Thursday, March 02, 2006 - 07:37 pm:   

Hi Lars,

Sorry, my time has been all consumed trying to get NowSMS 2006 finalised for release. So I am now back.

Are you connecting to an HTTP based SMSC interface?

While the "charset=" parameter on the inbound request tells NowSMS what character set is used for the message being submitted ... NowSMS will then convert the message to UTF-8 for internal processing.

For an HTTP SMSC, to set its character set, you need to manually edit SMSGW.INI, and under the [HTTP - a.b.c.d:xyz] section header add:

Charset=iso-8859-1

Specifies the character set to be used when submitting text messages to an HTTP based SMSC. By default NowSMS uses UTF-8, however some service European or American providers might expect iso-8859-1 (the standard Western European "text" character set).


Hopefully I've guessed right about the problem!

-bn