Learn R Programming

⚠️There's a newer version (1.2.3) of this package.Take me there.

utf8

utf8 is an R package for manipulating and printing UTF-8 text that fixes multiple bugs in R’s UTF-8 handling.

Installation

Stable version

utf8 is available on CRAN. To install the latest released version, run the following command in R:

Development version

To install the latest development version, run the following:

Usage

Validate character data and convert to UTF-8

Use as_utf8() to validate input text and convert to UTF-8 encoding. The function alerts you if the input text has the wrong declared encoding:

Normalize data

Use utf8_normalize() to convert to Unicode composed normal form (NFC). Optionally apply compatibility maps for NFKC normal form or case-fold.

Copy Link

Version

Install

install.packages('utf8')

Monthly Downloads

1,383,737

Version

1.2.2

License

Apache License (== 2.0) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 22nd, 2023

Functions in utf8 (1.2.2)

utf8_width

Measure the Character String Width
utf8_normalize

Text Normalization
output_utf8

Output Capabilities
utf8_encode

Encode Character Object as for UTF-8 Printing
utf8-package

The utf8 Package
as_utf8

UTF-8 Character Encoding
utf8_print

Print UTF-8 Text
utf8_format

UTF-8 Text Formatting