You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2015/12/13 16:14:53 UTC
[whimsy.git] [14/37] Commit 044fbc9: force utf-8
Commit 044fbc96d4bb7513e2b187c3dc262d40cba5c1ec:
force utf-8
Branch: refs/heads/secmail
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
views/body.html.rb | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------
diff --git a/views/body.html.rb b/views/body.html.rb
index c79d45b..0549a4c 100644
--- a/views/body.html.rb
+++ b/views/body.html.rb
@@ -41,7 +41,7 @@
if @message.html_part and @message.html_part.body.to_s.valid_encoding?
_div do
begin
- _{@message.html_part.body.to_s.untaint}
+ _{@message.html_part.body.to_s.encode('utf-8').untaint}
success = true
rescue
end