summaryrefslogtreecommitdiff
path: root/rt/share/html/REST/1.0/ticket/comment
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/REST/1.0/ticket/comment')
-rwxr-xr-xrt/share/html/REST/1.0/ticket/comment6
1 files changed, 5 insertions, 1 deletions
diff --git a/rt/share/html/REST/1.0/ticket/comment b/rt/share/html/REST/1.0/ticket/comment
index 4c058b6ab..177690d6a 100755
--- a/rt/share/html/REST/1.0/ticket/comment
+++ b/rt/share/html/REST/1.0/ticket/comment
@@ -108,7 +108,11 @@ my $ent = MIME::Entity->build(
Type => "multipart/mixed",
'X-RT-Interface' => 'REST',
);
-$ent->attach(Data => $k->{Text}) if $k->{Text};
+$ent->attach(
+ Type => "text/plain",
+ Charset => "UTF-8",
+ Data => Encode::encode( "UTF-8", $k->{Text} ),
+) if $k->{Text};
{
my ($res, $msg) = process_attachments($ent, @atts);