Converts all characters directly or indirectly contained in an object to a specific encoding. This works even if the encoding is different in the elements of a character vector.
1 2 3 4 5 6 7 8 9 10 11 12
A character vector.
passed on to methods
A function that accepts a character value as first argument and returns a (possibly classed) character with the desired encoding
converts to UTF-8, using the
where possible. Implemented as
converts to the native encoding.
to_encoding(x, enc2native) on Windows
to_encoding(x, as_utf8) on Linux and OS X
converts to the latin-1 encoding
converts to the "other" encoding, i.e., UTF-8 on Windows and latin-1 on Linux and OS X.
iconv() for different ways to convert
character vectors to Unicode
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.