Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with �. �, �

 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using Javamail you can do it like this:

Rene
[ August 07, 2002: Message edited by: Rene Larsen ]
 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic