codecvt_utf8

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see codecvt_utf8 on docs.microsoft.com. Represents a locale facet that converts between wide characters encoded as UCS-2 or UCS-4, and a byte stream encoded as UTF-8.

template <class Elem,  
    unsigned long Maxcode = 0x10ffff,  
    codecvt_mode Mode = (codecvt_mode)0>  
class codecvt_utf8 : public std::codecvt<Elem, char, StateType>  

Parameters

ParameterDescription
ElemThe wide-character element type.
MaxcodeThe maximum number of characters for the locale facet.
ModeConfiguration information for the locale facet.

Remarks

The byte stream can be written to either a binary file or a text file.

Show: