Rev 43933 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/utf8Conversion.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2008 R Core Development Team% Distributed under GPL 2 or later\name{utf8Conversion}\alias{utf8ToInt}\alias{intToUtf8}\title{Convert to or from UTF-8-encoded Character Vectors}\description{Conversion of UTF-8 encoded character vectors to and from integer vectors.}\usage{utf8ToInt(x)intToUtf8(x, multiple = FALSE)}\arguments{\item{x}{object to be converted.}\item{multiple}{logical: should the conversion be to a singlecharacter string or multiple individual characters?}}\details{These will work in any locale, including on machines that do nototherwise support multi-byte character sets.}\value{\code{utf8ToInt} converts a length-one character string encoded inUTF-8 to an integer vector of (numeric) UTF-8 code points.\code{intToUtf8} converts a vector of (numeric) UTF-8 code pointseither to a single character string or a character vector of singlecharacters. (Note that a single character string could containembedded nuls.) The \code{\link{Encoding}} is declared as\code{"UTF-8"}.}\examples{\dontrun{## will only display in some localesintToUtf8(0x03B2L) # Greek beta}}\keyword{character}\keyword{utilities}