From cedd72da9b74fc926cd4d764c3a56b3893e2d0a6 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Mon, 17 Feb 2020 10:46:40 +0100 Subject: [PATCH] Force UTF-8 IO encoding --- bin/run-tc-transfer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/run-tc-transfer.sh b/bin/run-tc-transfer.sh index c315e749..164e1b0b 100755 --- a/bin/run-tc-transfer.sh +++ b/bin/run-tc-transfer.sh @@ -19,6 +19,9 @@ fi; # and when trying to run on multiple devices (like GPUs), this will break export CUDA_VISIBLE_DEVICES=0 +# Force UTF-8 output +export PYTHONIOENCODING=utf-8 + echo "##### Train ENGLISH model and transfer to RUSSIAN #####" echo "##### while iterating over loading logic #####"