fix: handle UnicodeEncodeError when printing banner emoji on Windows

The banner print was failing with a UnicodeEncodeError on Windows terminals
using cp1252 encoding, as the rocket emoji (🚀) could not be encoded.
Replaced/adjusted the print to ensure compatibility across environments.
This commit is contained in:
Mahmoud Reda Shaaban
2025-08-31 16:17:41 +03:00
parent 07ddbb96ce
commit 0fffb0acec

1
run.py
View File

@@ -105,6 +105,7 @@ def start_server(host: str = "127.0.0.1", port: int = 8000, reload: bool = False
def main():
"""Main entry point with command line arguments."""
sys.stdout.reconfigure(encoding='utf-8')
parser = argparse.ArgumentParser(
description="N8N Workflows Search Engine",
formatter_class=argparse.RawDescriptionHelpFormatter,