codepoint | R Documentation |
Given codepoints cp
, the function codepointToKanji
transforms
to UTF-8, which will typically show as the actual character the codepoints stands for.
Vice versa, given (UTF-8 encoded) kanjis kan
, the function kanjiToCodepoint
transforms
to unicode codepoints.
codepointToKanji(cp, concat = FALSE)
kanjiToCodepoint(kan, character = FALSE)
cp |
a vector of character strings or objects of class |
concat |
logical. Shall the returned characters be concatenated? |
kan |
a vector of kanjis (strings of length 1) or a single string of length >= 1 of kanjis. |
character |
logical. Shall the returned codepoints be of class "character" or hexmode. |
For codepointToKanji
a character vector of kanji. For kanjiToCodepoint
a vector
of hexadecimal numbers (class hexmode
).
codepointToKanji(c("51b7", "6696", "71b1"))
kanjiToCodepoint("\u51b7\u6696\u71b1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.