c - wcstombs: character encoding? -
wcstombs says, this "converts the sequence of word-character code to multibyte string". But it never says what is "broad-character"
Is it inherent, as it converts utf-16 into UTF-8 or the conversion is defined by some environmental variables ?
Besides, what is the common use of wcstombs?
P> / code> (or
LC_ALL
) uses the
wchar_t
between characters and multibyte characters to set the mapping category
setlocale () , so you should see it in your compiler docs. For example, with MSWC you sitelokel (lc_all, ".1252");
To set the C runtime to codepage 1252 as multibyte character set. Note that MSVC docs clearly indicates that the locale for multilingual character sets can not be set to UTF-7 or UTF8:
Available languages, country / region codes and codes All of the pages are included, except those code pages that are supported by the Win32 NLS API, in which each character requires more than two bytes, such as UTF-7 and UTF-8 if you have code page like UTF-7 or UTF-8 Offer, then Etlokel will fail, tap return.
"broad-letter" wchar_t
is the purpose of the type to be able to support any of the characters that support the system - standard wchar_t
does not define the type of type (it can be as short as char
or any large integer type) in Windows it is the 'internal' Unicode encoding of the system, which UTF-16 (before UCS-2 WinxP). Honestly, I have not found a direct quote on MSWC documents on it, though. Strictly speaking, implementation should call it, but I can not find it.
Comments
Post a Comment