CodePage.into

Convert utf8 text to a codepage representation

page 0 - the ansi code page 1 - the oem code page 2 - the mac code page 3 - ansi code page for the calling thread 65000 - UTF-7 translation 65001 - UTF-8 translation

or a region-specific codepage

struct CodePage
static
char[]
into
(
const(char)[] src
,
char[] dst
,
uint page = 0
)

Return Value

Type: char[]

a slice of the provided output buffer representing converted text

Note that the input must be utf8 encoded. Note also that the dst output should be sufficiently large to accomodate the output; a size of 2*src.length would be enough to host almost any conversion

Meta