Re: Another coding question.
"Bruno David Rodrigues" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <01ee01c1ca06$9ebc4e40$6e01290a@hobbes> |
I've done the "lamer" way. I'm searching for "&#" text and if present, fall back to ucs2 That's somewhere in urltrans.c, check for "mo_recode" ----- Original Message ----- From: "Oded Arbel" <[email protected]> To: "Kannel-devel (E-mail)" <[email protected]> Sent: Monday, March 11, 2002 5:45 PM Subject: Another coding question. Hi list. in a follow up to my last coding question : when receiving the UTF-8 encoded text, what I wanted to do is to try to encode it to 7 bit ASCII, if not successful (have chars that need more then 7 bit, i.e. high iso-8859-8 chars) I will then try to encode to ISO-8859-8 and if that does not succeed (message probably has unicode characters that are not part of iso-8859-8) I will then encode to UCS-2. Now the problem is that when I try to encode to ASCII or ISO-8859-8, encoding always succeed, and unicode characters get translated into HTML entities (for example ס). is there a way to stop it from doing that and simply fail the conversion ? I remember something similar to this discussed on the list, but the mail archive search refused to help me locate it (didn't like me entering weird characters, like & ;-) -- Oded Arbel m-Wise Inc. [email protected] "The cynics are right nine times out of ten." -- Henry Louis Mencken