Obtain a specific character by typing its ascii code.
From TextEdit or Terminal, I want to obtain a specific character by typing its ascii code.
From TextEdit or Terminal, I want to obtain a specific character by typing its ascii code.
Choose Utilities from the Finder's Go menu, open the Script Editor, and run code such as:
ASCII character 100
(249824)
tsaphnat wrote:
From TextEdit or Terminal, I want to obtain a specific character by typing its ascii code.
If there are specific characters you need frequently, tell us what they are and we can probably suggest an easier way to input them.
There is also an option to type unicode codes:
https://eshop.macsales.com/blog/55336-unicode-adding-thousands-of-characters-to-your-mac/
In Terminal, and probably in your ${HOME}.zshrc file, create a function:
charn () { printf %d\\n \'"$@" }
Then, use it like this:
charn A
65
charn ^
94
Tested: macOS Sonoma 14.2.1 with Zsh 5.9
Obtain a specific character by typing its ascii code.