Rick Root wrote:
> Jochem van Dieten wrote:
> 
>>They are the result of applying a Quoted-Printable transfer encoding on the 
>>original message. You need to decode the message before displaying. See RFC 
>>2045 for the algorithm.

I finally solved this... by dumping the contents of the results from 
getContent() to a text file, and opening the txt file in VI.

As I suspected, Java *WAS* automatically doing the decoding (thank 
god!).. but it was converting the carriage returns in this message to 
just carriage returns - ascii 13 - and I was only converted line feeds 
(ascii 10) to <br/> tags).  The stray ascii 13 characters don't print in 
the view source of either thunderbird or IE 7.

so now, I convert all instances of CRLF to <br/> and then all instances 
of lonely carriage returns or lonely linefeeds to <br/> tags too.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262263
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to