powered by Jive Software

Message body with newlines?

I’‘d like to send messages with Smack that contain newlines but the messages are truncated to the first line (I’'ve tried iChat and Adium clients to receive the messages). Is this even possible with jabber/smack?

Thanks,

Tom

How are you inserting the newline?

What character do you think is representing the newline?

What type of compoenent are you using to compose your text to send to the other client?

Are you sending plain text or XHTML?

-Ken

I am using:

con.createChat(user).sendMessage(msgString);

to send a message via a GoogleTalkConnection object. My newlines are just newline (\n) characters.

Tom

Tom,

The clients you are using may not be using simple text components to display their messages. So \n my not have the meaning you intend.

Most of the IM clients are psuedo-HTML renderers.

-Ken