I need functions to convert between a character (e.g. 'α'
) and its full Unicode name (e.g. "GREEK SMALL LETTER ALPHA"
) in both directions.
The solution I came up with is to perform a lookup in the official Unicode Standard available online: http://www.unicode.org/Public/6.2.0/ucd/UnicodeData.txt, or, rather, in its cached local copy, possibly converted to a suitable collection beforehand to improve the lookup performance).
Is there a simpler way to do these conversions? I would prefer a solution in C#, but solutions in other languages that can be adapted to C# / .NET are also welcome. Thanks!