Utility functions to convert encoding between the native encoding and the encoding of the corpus.
1 2 3 4 5
the object (a character vector)
encoding of the input character vector
encoding of the corpus (e.g. "latin1", "UTF-8")
The encoding of a corpus and the encoding of the terminal (the native
encoding) may differ and evoke strange output, or wrong results if no
conversion is carried out between the potentially differing encodings. The
as.corpusEnc are auxiliary functions
to assist this. The functions
deliberately remove the explicit statement of the encoding, to avoid warnings
that may occur with character vector columns in a
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.