diff --git a/minio/helpers.py b/minio/helpers.py index c7f6c9010..0253e5f71 100644 --- a/minio/helpers.py +++ b/minio/helpers.py @@ -349,13 +349,13 @@ def normalize_key(key: str) -> str: def to_string(value) -> str: value = str(value) - try: - value.encode("us-ascii") - except UnicodeEncodeError as exc: - raise ValueError( - f"unsupported metadata value {value}; " - f"only US-ASCII encoded characters are supported" - ) from exc + # try: + # value.encode("us-ascii") + # except UnicodeEncodeError as exc: + # raise ValueError( + # f"unsupported metadata value {value}; " + # f"only US-ASCII encoded characters are supported" + # ) from exc return value def normalize_value(values: str | list[str] | tuple[str]) -> list[str]: