Cross-platform way to enter Unicode characters
( go to the article → https://www.johndcook.com/blog/2023/09/28/cross-platform-unicode/ )
The previous post describes the hoops I jumped through to enter Unicode characters on a Mac. Here’s a script to run from the command line that will copy Unicode characters to the system clipboard. It runs anywhere the Python module pyperclip runs. #!/usr/bin/env python3 import sys import pyperclip cp = sys.argv[1] ch = eval(f"chr(0x{cp})") print(ch) […]
The post Cross-platform way to enter Unicode characters first appeared on John D. Cook.
Sept. 28, 2023, 11:24 p.m.
You may be interested in:
Newest in: Python
-