Julia:从字符中提取 unicode 密钥

Mik*_*ing 4 unicode julia

在 Julian 中,我想知道角色的特定 unicide-key 并将其保存到变量中。我该怎么做呢?

\n

例如,我可以在 中写入 Unicode 字符REPL,它会很乐意告诉我它们的 Unicode 密钥。

\n
julia> '\xc3\xab'\n'\xc3\xab': Unicode U+00EB (category Ll: Letter, lowercase)\n\njulia> 'e'\n'e': ASCII/Unicode U+0065 (category Ll: Letter, lowercase)\n\n
Run Code Online (Sandbox Code Playgroud)\n

我如何提取U+00EBU+0065

\n

Bog*_*ski 7

使用codepoint

\n
julia> codepoint('e')\n0x00000065\n\njulia> codepoint('\xc3\xab')\n0x000000eb\n
Run Code Online (Sandbox Code Playgroud)\n