iconvLocaleToUtf8Length

Allocates a new string buffer containing the first n bytes of str converted to UTF-8.

string
iconvLocaleToUtf8Length
(
string str
,
size_t n
)

Parameters

str string

string in locale charset

n size_t

number of bytes to convert

Return Value

Type: string

a new string buffer containing the first n bytes of str converted to UTF-8.