std.windows.charset
Support UTF-8 on Windows 95, 98 and ME systems.
Functions
char
[]
fromMBSz
(
char
*
s
,
int
codePage
)
Converts the null-terminated string s from a Windows 8-bit character set into a UTF-8 char array.
Parameters:
s
UTF-8 string to convert.
codePage
is the number of the source codepage, or 0 - ANSI, 1 - OEM, 2 - Mac
Authors:
Stewart Gordon, Walter Bright
char
*
toMBSz
(
char
[]
s
,
uint
codePage
)
Converts the UTF-8 string s into a null-terminated string in a Windows 8-bit character set.
Parameters:
s
UTF-8 string to convert.
codePage
is the number of the target codepage, or 0 - ANSI, 1 - OEM, 2 - Mac
Authors:
yaneurao, Walter Bright, Stewart Gordon