@@ -577,6 +577,7 @@ def get(url, params, stream):
577577 stream = stream
578578 )
579579 if response .content :
580+ response .encoding = 'UTF-8'
580581 decoded_response = response .json ()
581582 # All metadata resources are expected to be sent as a JSON
582583 # array of DICOM data sets. However, some origin servers may
@@ -1587,9 +1588,9 @@ def _invoke_delete_request(url: str) -> requests.models.Response:
15871588 response = _invoke_delete_request (url )
15881589 if response .status_code == HTTPStatus .METHOD_NOT_ALLOWED :
15891590 logger .error (
1590- 'Resource could not be deleted. '
1591- 'The origin server may not support deletion '
1592- 'or you may not have the necessary permissions.'
1591+ 'Resource could not be deleted. '
1592+ 'The origin server may not support deletion '
1593+ 'or you may not have the necessary permissions.'
15931594 )
15941595 response .raise_for_status ()
15951596 return response
@@ -2045,7 +2046,7 @@ def delete_study(self, study_instance_uid: str) -> None:
20452046 """
20462047 if study_instance_uid is None :
20472048 raise ValueError (
2048- 'Study Instance UID is required for deletion of a study.'
2049+ 'Study Instance UID is required for deletion of a study.'
20492050 )
20502051 url = self ._get_studies_url (_Transaction .DELETE , study_instance_uid )
20512052 self ._http_delete (url )
@@ -2440,7 +2441,7 @@ def delete_series(
24402441 """
24412442 if study_instance_uid is None :
24422443 raise ValueError (
2443- 'Study Instance UID is required for deletion of a series.'
2444+ 'Study Instance UID is required for deletion of a series.'
24442445 )
24452446 if series_instance_uid is None :
24462447 raise ValueError (
@@ -2683,7 +2684,7 @@ def delete_instance(
26832684 """
26842685 if study_instance_uid is None :
26852686 raise ValueError (
2686- 'Study Instance UID is required for deletion of an instance.'
2687+ 'Study Instance UID is required for deletion of an instance.'
26872688 )
26882689 if series_instance_uid is None :
26892690 raise ValueError (
0 commit comments