Check out example codes for "widechartomultibyte". It will help you in understanding the concepts better.

Code Example 1

Maps a UTF-16 (wide character) string to a new character string. 
The new character string is not necessarily from a multibyte character set.

int WideCharToMultiByte(
  UINT                               CodePage,
  DWORD                              dwFlags,
  _In_NLS_string_(cchWideChar)LPCWCH lpWideCharStr,
  int                                cchWideChar,
  LPSTR                              lpMultiByteStr,
  int                                cbMultiByte,
  LPCCH                              lpDefaultChar,
  LPBOOL                             lpUsedDefaultChar

// Header	stringapiset.h (include Windows.h)

Learn ReactJs, React Native from