{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Fixes Unicode input and display in Python when running from the Windows console by replacing standard streams and input handling with WinAPI-based alternatives.","skillfed_tags":["windows-only","end-of-life"],"use_cases":["Running legacy Python 2 scripts on Windows that need to accept or display Unicode input from the console.","Interactive Python REPL sessions on Windows where you need to enter or see non-ASCII characters.","Debugging or testing Python code that processes Unicode on a Windows machine with older Python versions.","Standalone Windows console applications written in Python 2 that require international character support."],"what_it_does":"win-unicode-console patches Python's standard input/output streams on Windows to handle Unicode correctly. The Windows console has fundamental limitations: sys.stdin, sys.stdout, and sys.stderr cannot natively read or display Unicode characters through normal Python I/O. This package replaces those streams with custom implementations that use Windows API functions (ReadConsoleW and WriteConsoleW) to communicate with the console in UTF-16-LE, then transcodes to UTF-8 for Python's tokenizer. It also installs a custom readline hook to fix interactive input and, on Python 2, monkeypatches raw_input and sys.argv to handle Unicode.\n\nThe package is designed as an external patch\u2014a user-level fix rather than something application developers should bundle as a dependency. Once enabled via win_unicode_console.enable(), Unicode characters can be printed and entered normally. However, the package is abandoned (last release 2016-06-25, last commit 2021-01-04) and targets only Python 2.7 and 3.4\u20133.5, making it unsuitable for modern Python environments.","worth_installing":"No. The package is abandoned (last release 2016-06-25) and targets only Python 2.7 and 3.4\u20133.5, all of which are end-of-life. Modern Python has significantly improved Unicode handling on Windows. If you are on a supported Python version, the standard streams should work correctly; if you are on Python 2 or early versions, you should upgrade rather than apply this patch. Install only if you are stuck maintaining legacy code on an unsupported Python version and have no path to upgrade."},"id":"win-unicode-console","links":{"html":"https://skillfed.io/packages/win-unicode-console","md":"https://skillfed.io/packages/win-unicode-console.md","pypi":"https://pypi.org/project/win-unicode-console/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-06-25","license_spdx":null,"license_treatment":"permissive","name":"win_unicode_console","python_support":"unspecified","summary":"Enable Unicode input and display when running Python from Windows console."},"popularity":{"monthly_downloads":493187,"position":6357,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5"}
