From e820e38159390093cdcbf08b2f1a8b7eb0632278 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 18 May 2015 10:45:50 +0200 Subject: fix --- server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.rb b/server.rb index 2112638..86fc53f 100755 --- a/server.rb +++ b/server.rb @@ -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 -- cgit v1.2.3