Skip to content

Commit

Permalink
force utf8 output when using print()
Browse files Browse the repository at this point in the history
  • Loading branch information
nyctef committed Jun 3, 2022
1 parent 853c9aa commit b0a1b02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions redis_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
from pprint import pformat
import re

import sys
sys.stdout.reconfigure(encoding='utf-8')

r = redis.Redis(decode_responses=True)
r.ping()

Expand Down

0 comments on commit b0a1b02

Please sign in to comment.