utf8Conversion             package:base             R Documentation

_C_o_n_v_e_r_t _t_o _o_r _f_r_o_m _U_T_F-_8-_e_n_c_o_n_d_e_d _C_h_a_r_a_c_t_e_r _V_e_c_t_o_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Conversion of UTF-8 encoded character vectors to and from integer
     vectors.

_U_s_a_g_e:

     utf8ToInt(x)
     intToUtf8(x, multiple = FALSE)

_A_r_g_u_m_e_n_t_s:

       x: object to be converted.

multiple: logical: should the conversion be to a single character
          string or multiple individual characters?

_D_e_t_a_i_l_s:

     These will work in any locale, including on machines that do not
     otherwise support multi-byte character sets.

_V_a_l_u_e:

     'utf8ToInt' converts a length-one character string encoded in
     UTF-8 to an integer vector of (numeric) UTF-8 code points.

     'intToUtf8' converts a vector of (numeric) UTF-8 code points
     either to a single character string or a character vector of
     single characters. (Note that a single character string could
     contain embedded nuls.)

