Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

> is-unicode-supported

Detect whether the terminal supports advanced Unicode.

Checks if terminal supports advanced Unicode (CJK, emoji, etc.) by measuring the cursor position of a single, wide char (𠀀). Returns False for legacy consoles or True if the wide char renders as 2 columns.

⚡ Installation

pip install is-unicode-supported

💻 Command line usage

is-unicode-supported  # or supportsunicode
# e.g. => True

CLI options:

Option Description
-h, --help Show help screen
-v, --version Show version
--docs Open docs URL

🔌 API usage

import is_unicode_supported

if is_unicode_supported():
    print('Advanced Unicode supported!')
else:
    print('Advanced Unicode not supported!')

Note: Most type checkers will falsely warn is_unicode_supported is not a callable module because they are incapable of analyzing runtime behavior (where the module is replaced w/ a function for cleaner, direct access). You can safely suppress such warnings using # type: ignore.


MIT License

Copyright © 2026 Adam Lui


Related

🇪🇸 latin-locales - ISO 639-1 (2-letter) codes for Latin locales.
🇨🇳 non-latin-locales - ISO 639-1 (2-letter) codes for non-Latin locales.
🌍 translate-messages - Translate en/messages.json (chrome.i18n format) to 100+ locales automatically.

More Python utilities / Discuss / Report bug / Report vulnerability / Back to top ↑