Another coding question.

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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 &#1505;). 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
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.