When used in the functions in this subclause, the encoding of char8_t, char16_t, and char32_t objects, and sequences of such objects, is UTF-8, UTF-16, and UTF-32, respectively. Similarly, the encoding of char and wchar_t, and sequences of such objects, is the execution and wide execution encodings (6.2.9), respectively.
https://media.hachyderm.io/media_attachments/files/113/617/150/829/546/604/original/1e9e11aa94f5ba94.png