I think I saw this a long time ago; a way to get a string containing the name of a unicode character by using Win32 API calls. I'm using C++ Builder so if there is support for it in the VCL library that would work fine too.
For example:
GetUnicodeName(U+0021)
would return a string (or fill in a struct or similar), such as "EXCLAMATION MARK"
.
Or if there are some other way to get the same result from Windows with C or C++.
The worst case scenario would be to have a HUGE lookup table with the names of interest (mainly Latin characters).
You can use undocumented
GetUName
method fromgetuname.dll
:The downside is that it only contains characters from Unicode Basic Multilingual Plane (BMP).
Update: You can use
u_charName()
ICU API that comes with Windows since Fall Creators Update (Version 1709 Build 16299):