From 7144952306381ac17d1d23c361d17f4cfd2f38a8 Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 5 Mar 2026 03:29:04 -0800 Subject: [PATCH] Fix UnicodeEncodeError on Windows in validate_plugins.py --- validate_plugins.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validate_plugins.py b/validate_plugins.py index ff0d0f5..ee54d35 100644 --- a/validate_plugins.py +++ b/validate_plugins.py @@ -463,6 +463,11 @@ def print_report(all_results: list[dict]): def main(): """Find and validate all plugins in the collection.""" + # Ensure UTF-8 output on Windows + if sys.platform == 'win32': + import io + sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') + # Determine base path if len(sys.argv) > 1: base_path = sys.argv[1]