diff --git a/src/huggingface_hub/_dataset_viewer.py b/src/huggingface_hub/_dataset_viewer.py index ada15a7f0c..8c3a773df4 100644 --- a/src/huggingface_hub/_dataset_viewer.py +++ b/src/huggingface_hub/_dataset_viewer.py @@ -147,6 +147,7 @@ def execute(self) -> list[dict[str, Any]]: input=full_query, capture_output=True, text=True, + encoding="utf-8", check=False, ) if result.returncode != 0: