Reverted unicode changes, made things worse

This commit is contained in:
Roberto Rosario
2011-02-14 14:32:59 -04:00
parent 64dce7ea3f
commit 8d07419d01
3 changed files with 6 additions and 8 deletions

View File

@@ -97,5 +97,8 @@ 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']).decode('utf-8')
#unquote_plus handles utf-8?!?
#http://stackoverflow.com/questions/4382875/handling-iri-in-django
document_metadata.value=unquote_plus(metadata_dict['value'])#.decode('utf-8')
document_metadata.save()