Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

email charset bug

$
0
0
Email sent by HQ that contained non-ASCII chars  may become unreadable, because the all non-ASCII chars become '?'. This is caused by the encoding of the email.  I just fix it by editing  /HQ/src/org/hyperic/hq/bizapp/server/action/email/EmailFilter.java as following:

m.setContent(htmlBody[ i ], "text/html");
changed to
m.setContent(htmlBody[ i ], "text/html; charset=UTF-8");

m.setContent(body[ i ], "text/plain");
changed to
m.setContent(body[ i ], "text/plain; charset=UTF-8");

Message was edited by: cnmmbd

Message was edited by: cnmmbd

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>