You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
502 B
16 lines
502 B
Index: lib/RT/Attachment_Overlay.pm |
|
--- lib/RT/Attachment_Overlay.pm.orig 2009-06-10 20:40:33 +0200 |
|
+++ lib/RT/Attachment_Overlay.pm 2009-08-07 16:57:05 +0200 |
|
@@ -313,10 +313,12 @@ |
|
eval { return( Encode::decode_utf8($content)) } || return ($content); |
|
} |
|
|
|
+ if (!$enc) { |
|
eval { Encode::from_to($content, 'utf8' => $enc) } if $enc; |
|
if ($@) { |
|
$RT::Logger->error("Could not convert attachment from assumed utf8 to '$enc' :".$@); |
|
} |
|
+ } |
|
return $content; |
|
} |
|
|
|
|