urltrans question

Illimar Reinbusch <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi

Im currently using "cvs-20090506" version (with custom modifications for 
keyword handling) in my servers, earlier i was using cvs-20080808.

I started noticing that with new version some of my messages got wrong 
charset.

I traced error back to the urltrans.c file, where i found the following :

"cvs-20090506" version
...cut...
             switch (request->sms.coding) {
             case DC_UNDEF:
             case DC_7BIT:
                 octstr_append(result, octstr_imm("UTF-8"));
                 break;
...cut...

"cvs-20080808" version
...cut...
             switch (request->sms.coding) {
             case DC_UNDEF:
             case DC_7BIT:
                 octstr_append(result, octstr_imm("ISO-8859-1"));
                 break;
...cut...

Messages that came in thru SMSC connections were standard GSM charset 
(SMPP data coding 0 or data coding 3) but if i use
charset=%C in sms-service and my php script detects the charset using 
this parameter i got information that message is UTF-8 but it actually 
was ISO-8859-1 because no internal recoding was done.

Any ideas why this was changed in new version?

Illimar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.