aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/incoming_message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 2974b5d73..8802899ae 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -19,7 +19,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: incoming_message.rb,v 1.161 2008-10-29 11:07:38 francis Exp $
+# $Id: incoming_message.rb,v 1.162 2008-10-29 11:13:04 francis Exp $
# TODO
# Move some of the (e.g. quoting) functions here into rblib, as they feel
@@ -172,7 +172,7 @@ class FOIAttachment
if content_type == 'application/vnd.ms-word'
# XXX do something with PNG files this spits out so they view too :)
- system("/usr/bin/wvHtml " + tempfile.path + " " + tempfile.path + ".html")
+ system("/usr/bin/wvHtml --charset=UTF-8 " + tempfile.path + " " + tempfile.path + ".html")
html = File.read(tempfile.path + ".html")
File.unlink(tempfile.path + ".html")
elsif content_type == 'application/pdf'