Re: UTF-8 in generated e-mails?
Re: UTF-8 in generated e-mails?
- Subject: Re: UTF-8 in generated e-mails?
- From: Allen Cronce <email@hidden>
- Date: Thu, 8 Apr 2004 07:30:18 -0700
Sorry, I thought that was obvious. The question is, how can I create
page based e-mails in UTF-8?
Best regards,
--
Allen Cronce
On Apr 8, 2004, at 2:01 AM, Sako! wrote:
hello Allen,
what is the Question?!!
----- Original Message -----
From: "Allen Cronce" <email@hidden>
To: <email@hidden>; <email@hidden>
Sent: Thursday, April 08, 2004 3:09 AM
Subject: UTF-8 in generated e-mails?
Hi all,
Our application supports UTF-8 in our pages via the usual overrides of
appendToResponse and takeValuesFromRequest to specify UTF-8 encoding.
However, e-mails created by composeComponentEmail are not coming
through as UTF-8 encoded.
Here's a simplified code snippet of the e-mail generation code:
context = application().createContextForRequest(
application().createRequest(
"GET",
"www.blahblah.com",
"HTTP/1.0",
null,
null,
null));
// UTF-8 encoding support
context.request().setContentEncoding("UTF8");
context.request().setDefaultEncoding("UTF8");
// create the page
WOComponent page = pageWithName(pageName, context);
String strEMail =
WOMailDelivery.sharedInstance().composeComponentEmail( sender,
destinations,
null, subject,
page, false );
Any suggestions would be welcome.
Best regards,
--
Allen Cronce
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.