RE: Another coding question.
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Well it is an issue in this case, since the incoming MO is _always_ coded in UTF-8, so I must decide myself if I want to recode it to iso-8859-1 or to UTF-16 (UCS-2, whatever). I guess I will have to scan the string mysels for utf-8 characters, code to UCS2 if I find any or to 7 bit ASCII if I don't. that should take care of most cases. I don't mind this solution (except that it's a bit more work for me - but I've got more keyboard milage just from this discussion alone), but the keyword matching is still open - take into consideration the following cases, and please tell me if you think that Kannel can handle these well - currently. I think that all of them will fail keyword matching : 1. keyword has high iso-8859-1 chars (acented chars) and message is encoded in UCS2 (only ascii chars). 2. keyword is ASCII only and message is encoded in UCS2 (has some unicode chars). 3. keyword must contain non-english chars and message is encoded in whatever. -- Oded Arbel m-Wise Inc. [email protected] Truth will out this morning. (Which may really mess things up.) > -----Original Message----- > From: Andreas Fink [mailto:[email protected]] > Sent: Monday, March 11, 2002 8:07 PM > To: Oded Arbel > Subject: RE: Another coding question. > > > >No, because I don't bother with keywords - I just want the > message out. > > well then leave it as UTF16 if its UTF16 and ISO-8859-1 if its that. > I dont see the problem as the recoding discussion was only occuring > once the keyword matching was an issue. > -- > > Andreas Fink > Fink-Consulting > > ------------------------------------------------------------------ > Tel: +41-61-6932730 Fax: +41-61-6932729 Mobile: +41-79-2457333 > Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland > E-Mail: [email protected] Homepage: http://www.finkconsulting.com > ------------------------------------------------------------------ > Something urgent? Try http://www.smsrelay.com/ Nickname afink >