echo "System.out.println(System.getProperty(\"file.encoding\"));" | java bsh.Interpreter
The system where I had this problem is a redhat 6.x system. On a rh 8.0 that used to be a 7.2 it is ISO-8859-1, and on a system that always was 8.0 it is UTF-8
Joseph Shraibman wrote:
I have code to create a Multipart like this:
MimeMultipart mm = new MimeMultipart("alternative");
BodyPart bp = new MimeBodyPart() ;
bp.setText(text);
mm.addBodyPart(bp);
bp = new MimeBodyPart() ; //reset variable for html part
bp.setContent(html,"text/html");
mm.addBodyPart(bp);
Under java 1.3.1 this generated mail that had this for the html multipart:
------=_Part_2_6220608.1041458193261
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
When I upgraded to 1.4.1 it now looks like this:
------=_Part_21_20566889.1041555012620
Content-Type: text/html; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: quoted-printable
This charset=ANSI_X3.4-1968 is causing problems when netscape reads the mail. It appears
that file.encoding changed between versions. Does anyone know why?
-- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com
---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]