Commits

number23 committed 9119d55

mail.clj: fix bug for utf8 encoding

Comments (0)

Files changed (1)

src/de/no/number23/commons_lib/mail.clj

         (.append "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body><pre>")
         (.append text)
         (.append "</pre></body></html>"))
-    (.setContent mbp (.toString sbuf) "text/html")
+    (.setContent mbp (.toString sbuf) "text/html; charset=utf-8")
     (.setHeader mbp "Content-Transfer-Encoding" "base64")
     (.addBodyPart mmp mbp)