Menu

#11 Message encoding not passed through

beta_versions
open
2
2012-09-15
2004-03-29
Daniel
No

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
"<HTML>hello</HTML>", 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
"<HTML>hello</HTML>" 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.

Discussion

  • Michellonet Fabrice

    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.

     
  • Lolo101

    Lolo101 - 2008-06-07

    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 ?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.