A simple class for storing UTF-8 strings
The values are stored as a character()
vector.
On construction, the enc2utf8()
function is called on the
input. Subsetting and concatenation operations on an object of this class
return an object of this class again.
Calls to Encoding<-()
are not intercepted.
utf8(x = character()) is_utf8(x) as_utf8(x, ...) ## Default S3 method: as_utf8(x, ...) ## S3 method for class ''NULL'' as_utf8(x, ...) ## S3 method for class 'character' as_utf8(x, ...) ## S3 method for class 'utf8' as_utf8(x, ...) ## S3 method for class 'utf8' as.character(x, ...) ## S3 method for class 'utf8' as.data.frame( x, row.names = NULL, optional = FALSE, ..., nm = paste(deparse(substitute(x), width.cutoff = 500L), collapse = " ") ) ## S3 method for class 'utf8' format(x, ...) ## S3 method for class 'utf8' print(x, ...)
x |
A vector |
... |
Arguments passed on to further methods. |
row.names |
|
optional |
logical. If |
nm |
Name of column in new data frame |
utf8(letters) utf8("ä") utf8(iconv("ä", to = "latin1"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.