There is no way to get the encoding type from a
message. Even if it is not processed(yet) in the packet,
the interface should define a function to get the type.
Now, lib users can try to decode the message itself,
which can be plain-text, RTF encoded, HTML encoded,
etc., but the problem is they cannot know if the
application or the user put the characters there.
For instance, assume e.getMessage() returns
"hello", then there is no way to know
whether the user wrote "hello" and the messenger sent a
HTML encoded message, or if the user wrote
"hello" and the messenger sent it as a
plain text message.
In the first case, we should decode HTML first before
showing the message, in the second case we normally
shouldn't.
Logged In: YES
user_id=503318
You're right, i should admit, i've never really had a look on
how ICQ deals with encoding... but i promise i will.
Logged In: YES
user_id=1045984
Originator: NO
I believe messages on channel 1 are always plain-text, and messages on channel 2 are always RTF, am i wrong ?