Skip to content

Commit e3acd2e

Browse files
AtharvaDomaleAtharva  Domalestickerdaniel
authored
fix(cli): fix UnicodeEncodeError on Windows by enforcing UTF-8 output (#30)
Co-authored-by: Atharva Domale <atharvad@aptask.com> Co-authored-by: Daniel Sticker <daniel.sticker@rwth-aachen.de>
1 parent 29fc793 commit e3acd2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
1010
"""
1111

12+
import io
1213
import logging
1314
import sys
1415
from typing import Literal
@@ -36,6 +37,8 @@
3637
from linkedin_mcp_server.server import create_mcp_server, shutdown_handler
3738
from linkedin_mcp_server.setup import run_cookie_extraction_setup, run_interactive_setup
3839

40+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
41+
3942
logger = logging.getLogger(__name__)
4043

4144

0 commit comments

Comments
 (0)