[rt-users] is it possible to specify an encoding in a template ?

David fooraide at gmail.com
Thu Jul 23 10:55:03 EDT 2009


Hi,

I am running RT under UTF-8 but for specific templates (sent to
devices which do not properly read this encoding), I'd like to be able
to specify ISO-8859-1 as the encoding to be used for the email.

I've tried several ways to do this in the header portion of the
template (Where "To:" "From:" and "Subject:" are specified) such as
follows:
===
To: email at domain.com
Subject: Email
Content-Type: text/plain; charset="iso-8859-1"

çàêèéùôö
===

However, it seems that it does not go through as I would hope and come
outs pretty gibberish.

If I look at the headers of the email that is sent (from within RT),
it looks like this (non-relevant details cropped):
[...]
To: email at domain.com
Content-Type: text/plain; charset="utf-8"
Subject: [RQ #1234] test
From: "RT" <rt at domain.com>
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: utf-8
[...]

If I look at the headers on the receiving end, it's the same thing.

This email is sent by a scrip that sends an email through the
SendEmailAction (http://wiki.bestpractical.com/view/SendEmailAction)

Any ideas ?



More information about the rt-users mailing list