Skip to content

Commit

Permalink
* set the default encoding of stdout to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
HYLcool committed Dec 30, 2024
1 parent 4805928 commit 6020a41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data_juicer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

from data_juicer.utils.availability_utils import _is_package_available

# set the default encoding to utf-8 explicitly
sys.stdout.reconfigure(encoding='utf-8')

ImageFile.LOAD_TRUNCATED_IMAGES = True

# For now, only INFO will be shown. Later the severity level will be changed
Expand Down

0 comments on commit 6020a41

Please sign in to comment.