diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-18 13:40:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 13:40:57 -0600 |
commit | 5699c137e2078be52392b69a6d1bae65e9464cef (patch) | |
tree | c84676d851f3cda8437e3504ee68226a8a3235d6 | |
parent | f356e12766480852d0e30ae7b786cdf5f24d8cea (diff) | |
parent | d8291525f987dbe403f3ca42c79f74c2f8088991 (diff) | |
download | gitdb-5699c137e2078be52392b69a6d1bae65e9464cef.tar.gz |
Merge pull request #49 from xarx00/PR-UnicodeEncodeError
Change force_bytes to use UTF-8 encoding by default
-rw-r--r-- | gitdb/utils/encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitdb/utils/encoding.py b/gitdb/utils/encoding.py index 25ebead..b534ef7 100644 --- a/gitdb/utils/encoding.py +++ b/gitdb/utils/encoding.py @@ -1,4 +1,4 @@ -def force_bytes(data, encoding="ascii"): +def force_bytes(data, encoding="utf-8"): if isinstance(data, bytes): return data |