projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.22
[freeside.git]
/
rt
/
share
/
html
/
REST
/
1.0
/
ticket
/
comment
diff --git
a/rt/share/html/REST/1.0/ticket/comment
b/rt/share/html/REST/1.0/ticket/comment
index
4c058b6
..
177690d
100755
(executable)
--- 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',
);
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);
{
my ($res, $msg) = process_attachments($ent, @atts);