dcsimg
get linefeed from getContent() in JavaMail
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, October 29, 2001 07:27 PM

I have problem when try to display content via getContent() in JavaMail. The text display continuously with no linefeed at all. I wonder what's the linefeed symbol got by getContent()? I replace all "
" with br tag but it works for only some message. I guess there's special character or something?

Re: get linefeed from getContent() in JavaMail

Posted By:   Dennis_Meyer  
Posted On:   Sunday, January 20, 2002 01:50 PM

Seems to ba a Unix/Windows Problem. Windows uses different code to
display a "Return" than Unix. Unix just uses linefeed, Windows uses
linefeed and a carriage return, so the code is "/n/r" instead of "/n".

Re: get linefeed from getContent() in JavaMail

Posted By:   John_Zukowski  
Posted On:   Tuesday, October 30, 2001 06:04 PM

It sounds like you are getting the message content fine, but trying to display it in an HTML enabled window. No special character involved. Try sending the output to System.out to make sure you have the content properly, and then deal with the display part separately.
About | Sitemap | Contact