diff options
author | francis <francis> | 2008-10-29 11:13:04 +0000 |
---|---|---|
committer | francis <francis> | 2008-10-29 11:13:04 +0000 |
commit | fa25bd2ffd75dd9e072f24fbd41bc160225a674e (patch) | |
tree | 687f2c619295622e1e6b564c3918e4bc27311b68 | |
parent | a5a16200cfb02561b2627c04d42f03bd4ddb528a (diff) |
Output UTF-8
-rw-r--r-- | app/models/incoming_message.rb | 4 |
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' |