Skip to content

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

fix: add UTF-8 encoding wrapper for Windows compatibility (#61)

Thanh Nguyen7f22b57363d7
diff --git a/.shared/ui-ux-pro-max/scripts/search.py b/.shared/ui-ux-pro-max/scripts/search.py
index fea2e59..8022bb2 100644
--- a/.shared/ui-ux-pro-max/scripts/search.py
+++ b/.shared/ui-ux-pro-max/scripts/search.py
@@ -8,6 +8,14 @@ Domains: style, prompt, color, chart, landing, product, ux, typography
Stacks: html-tailwind, react, nextjs
"""
+import sys
+import io
+
+# Fix UnicodeEncodeError on Windows (cp1252 doesn't support Unicode symbols)
+# See: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues/22
+if sys.platform == 'win32':
+ sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
+
import argparse
from core import CSV_CONFIG, AVAILABLE_STACKS, MAX_RESULTS, search, search_stack