Encode resource with correct profile

Fixes #9465
This commit is contained in:
Philipp Hörist 2018-12-04 19:43:13 +01:00
parent 6c2df54132
commit b4f43acbc8
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def parse_resource(resource):
"""
if resource:
try:
return resource.encode('Nickname').decode('utf-8')
return resource.encode('OpaqueString').decode('utf-8')
except UnicodeError:
raise InvalidFormat('Invalid character in resource.')