[MAGNOLIA-517] templateForm doesn't work properly with cyrillic content Created: 06/Aug/05  Updated: 23/Jan/13  Resolved: 17/May/06

Status: Closed
Project: Magnolia
Component/s: templating
Affects Version/s: 2.1 Final
Fix Version/s: 3.0 RC1

Type: Improvement Priority: Minor
Reporter: Stojan Peshov Assignee: Boris Kraft
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: Not Specified
Original Estimate: 0d
Environment:

winXP, jdk1.5, tomcat5.5.9, firerox1.0.6


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

I tried to send mail with cyrillic content and didn't got it properly.
The solution is simple (if we use UTF-8)

the method :
public void sendMail() throws MessagingException {

needs following changes:

message.setSubject(subject, "UTF-8");
instead of:
message.setSubject(subject);

and
message.setText(body, "UTF-8");
instead of:
message.setContent(body, "text/plain");

This worked for me, but i'm sure there are other solutions about this problem...

btw. MailHandler is nice for now , wouldn't it be nicer if it has more input parameters i.e. header content ???



 Comments   
Comment by Philipp Bracher [ 17/May/06 ]

should be fixed

Generated at Mon Feb 12 03:18:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.