Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

fix encoding error when piping stdout to file #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nmt/utils/misc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import os
import sys
import time
import locale
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)

import numpy as np
import tensorflow as tf
Expand Down