'Quoted-Printable' encoding problems
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Max_Winther
Posted On:   Friday, April 20, 2001 01:37 AM

When setting a content with a url like this: '..?step=3&ImageId=32' the last get paramter is intepereted as already being Quoted-Printable , instead of encode the equalsign to =3d . I have already tried the answer given in: http://www.jguru.com/faq/view.jsp?EID=268864 , without effect. This is my code: InternetHeaders ih; ih = new InternetHeaders(); ih.addHeader("Content-Type", "text/plain; charset="iso-8859-1""); ih.addHeader("Content-Transfer-Encoding", "quoted-printable"); MimeBodyPart b2 = new MimeBodyPart(ih, plText.getBytes()); mp.addBodyPart(b2);    More>>

When setting a content with a url like this:
'..?step=3&ImageId=32' the last get paramter is intepereted as already being Quoted-Printable , instead of encode the equalsign to =3d .



I have already tried the answer given in:

http://www.jguru.com/faq/view.jsp?EID=268864 , without effect.



This is my code:



			InternetHeaders  ih;
			
ih = new InternetHeaders();
ih.addHeader("Content-Type", "text/plain; charset="iso-8859-1"");
ih.addHeader("Content-Transfer-Encoding", "quoted-printable");
MimeBodyPart b2 = new MimeBodyPart(ih, plText.getBytes());
mp.addBodyPart(b2);


For know I have made my own substituon of equalsigns, but there must be another way, thans this hack.    <<Less
About | Sitemap | Contact