1\name{utf8-package} 2\alias{utf8-package} 3\alias{utf8} 4\docType{package} 5\title{ 6The utf8 Package 7} 8\description{ 9UTF-8 Text Processing 10} 11\details{ 12Functions for manipulating and printing UTF-8 encoded text: 13 14\itemize{ 15 \item \code{\link{as_utf8}} attempts to convert character data to UTF-8, 16 throwing an error if the data is invalid; 17 18 \item \code{\link{utf8_valid}} tests whether character data is valid 19 according to its declared encoding; 20 21 \item \code{\link{utf8_normalize}} converts text to Unicode composed 22 normal form (NFC), optionally applying case-folding and compatibility 23 maps; 24 25 \item \code{\link{utf8_encode}} encodes a character string, escaping all 26 control characters, so that it can be safely printed to the screen; 27 28 \item \code{\link{utf8_format}} formats a character vector by truncating 29 to a specified character width limit or by left, right, or center 30 justifying; 31 32 \item \code{\link{utf8_print}} prints UTF-8 character data to the screen; 33 34 \item \code{\link{utf8_width}} measures the display width of UTF-8 character 35 strings (many emoji and East Asian characters are twice as wide as other 36 characters); 37 38 \item \code{\link{output_ansi}} and \code{\link{output_utf8}} test for 39 the output connections capabilities. 40} 41 42For a complete list of functions, use \code{library(help = "utf8")}. 43} 44\author{ 45Patrick O. Perry 46} 47\keyword{ package } 48