Handle unicode url data from the metadata

This commit is contained in:
Roberto Rosario
2011-02-14 13:41:15 -04:00
parent b2565b8223
commit e7600fa876
3 changed files with 8 additions and 7 deletions

View File

@@ -97,5 +97,5 @@ def save_metadata(metadata_dict, document):
metadata_type=get_object_or_404(MetadataType, pk=metadata_dict['id']),
)
#Handle 'plus sign as space' in the url
document_metadata.value=unquote_plus(metadata_dict['value'])
document_metadata.value=unquote_plus(metadata_dict['value']).decode('utf-8')
document_metadata.save()