win.WideCharToMultiByte

LuaFAR 3

win.WideCharToMultiByte


str_out = win.WideCharToMultiByte (str_in, codepage [, flags])

Parameters:
  str_in   : string in UTF-16LE encoding
  codepage : integer
  flags    : string, a combination of 0 or more of the following
             characters:
               'c' -> WC_COMPOSITECHECK
               'd' -> WC_DISCARDNS
               's' -> WC_SEPCHARS
               'f' -> WC_DEFAULTCHAR

Returns:
  str_out  : string in codepage encoding.

Windows API used:
  WideCharToMultiByte