diff --git a/swh/model/identifiers.py b/swh/model/identifiers.py index 85fc76c4585ccba88b8f7e69eca8ae2f9ff34ea1..6ccf948849e96bc45298909bb0677c9e881ef38e 100644 --- a/swh/model/identifiers.py +++ b/swh/model/identifiers.py @@ -612,7 +612,7 @@ def origin_identifier(origin): An origin's identifier is the sha1 checksum of the entire origin URL """ - return hashlib.sha1(origin['url'].encode('ascii')).hexdigest() + return hashlib.sha1(origin['url'].encode('utf-8')).hexdigest() _object_type_map = {