[interchange] Ensure proper encoding for HTML data in [email] usertag.

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 21710e22ec5ebe6f81d8bbc9a9969b00d34de4b9
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Tue Oct 26 15:10:22 2010 +0200

    Ensure proper encoding for HTML data in [email] usertag.

 code/UserTag/email.tag |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/code/UserTag/email.tag b/code/UserTag/email.tag
index 7beff84..97b3e9a 100644
--- a/code/UserTag/email.tag
+++ b/code/UserTag/email.tag
@@ -152,7 +152,7 @@ sub {
 		if($opt->{html}) {
 			unshift @$att, {type => 'text/html' 
 							.($utf8 ? '; charset=UTF-8': ''),
-							data => $opt->{html},
+							data => ($utf8 ? utf8_to_other($opt->{html}, 'UTF-8') : $opt->{html}),
 							disposition => 'inline',
 							};
 		}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.