utf8ToHex: Converting from UTF-8 to hexadecimal

Description Usage Arguments Value Author(s) Examples

Description

utf8ToHex converts from UTF-8 encoded character to hexadecimal

Usage

1
utf8ToHex(utf8char,tZeros=TRUE, sLen=5)

Arguments

utf8char

UTF-8 string

tZeros

logic, pad with zero

sLen

integer, number of digits to return

Value

character

Author(s)

Jose' Gama

Examples

1
2
x <- '\u00E4'
utf8ToHex(x)

Example output

[1] "000E4"

utf8latex documentation built on May 2, 2019, 6:16 p.m.