aspose file tools*
The moose likes Java in General and the fly likes Problems with �. �, � Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problems with �. �, � " Watch "Problems with �. �, � " New topic
Author

Problems with �. �, �

age spets
Ranch Hand

Joined: Aug 07, 2002
Posts: 68
Hi!
Have a problem with my javaProgram that takes use of different Mail jar files. The program is working now, so it sends email to whom I want to, but the problem is that it can not solve the problem with the norwegian encoding. Do anyone know how I may change this? Because now the String is translated so pr�ver comes out like pr=F8ver and it seems like the SMTP server gives an error message on that.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
aspets
Welcome to the Java Ranch, we hope you�ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!


Dave
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

When using Javamail you can do it like this:

Rene
[ August 07, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
age spets
Ranch Hand

Joined: Aug 07, 2002
Posts: 68
Just testing reply. thx alot. This helps.. For those that want to send html and UTF at the same time use:
messageBodyPart.setContent(messageBody,"text/html; charset=UTF-8");
Yours Age

Originally posted by Rene Larsen:
When using Javamail you can do it like this:

Rene
[ August 07, 2002: Message edited by: Rene Larsen ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problems with �. �, �