mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2025-11-25 03:15:25 +08:00
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:
1
run.py
1
run.py
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user