kmthien
Feb 8th, 2006, 09:02 PM
Hi guys,
I m using spring 1.2.6 and my code (from appfuse) is like below:
public void sendMessage(SimpleMailMessage msg, String templateName,
Map model) {
String result = null;
try {
result =
VelocityEngineUtils.mergeTemplateIntoString(veloci tyEngine,
templateName, "UTF-8", model);
} catch (VelocityException e) {
e.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
}
msg.setText(result);
send(msg);
}
I have put UTF-8 as a unicode encoding but when user received the email,
those Chinese character are like ????????????. All garble up ! Pls help, Thanks !
Apologize if I posted on the wrong section.
I m using spring 1.2.6 and my code (from appfuse) is like below:
public void sendMessage(SimpleMailMessage msg, String templateName,
Map model) {
String result = null;
try {
result =
VelocityEngineUtils.mergeTemplateIntoString(veloci tyEngine,
templateName, "UTF-8", model);
} catch (VelocityException e) {
e.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
}
msg.setText(result);
send(msg);
}
I have put UTF-8 as a unicode encoding but when user received the email,
those Chinese character are like ????????????. All garble up ! Pls help, Thanks !
Apologize if I posted on the wrong section.