diff options
author | Patrick Simianer <p@simianer.de> | 2015-05-18 10:45:50 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-05-18 10:45:50 +0200 |
commit | e820e38159390093cdcbf08b2f1a8b7eb0632278 (patch) | |
tree | fee8154d32c49d407ee606e996139f14c2a342a1 /server.rb | |
parent | caf5f8402d8a621ca39cb45a8f29d2f084381141 (diff) |
fix
Diffstat (limited to 'server.rb')
-rwxr-xr-x | server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ get '/next' do STDERR.write "[dtrain] > asking to translate: '#{msg}'\n" env[:dtrain][:socket].send msg STDERR.write "[dtrain] waiting for translation ...\n" - transl = env[:dtrain][:socket].recv.encode "UTF-8" + transl = env[:dtrain][:socket].recv.force_encoding "UTF-8" STDERR.write "[dtrain] < received translation: '#{transl}'\n" "#{source}\t#{transl}" end |