win.MultiByteToWideChar

LuaFAR 3

win.MultiByteToWideChar


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

Parameters:
  str_in   : string in multi-byte encoding
  codepage : integer
  flags    : string, a combination of 0 or more of the following
             characters:
               'p' -> MB_PRECOMPOSED
               'c' -> MB_COMPOSITE
               'e' -> MB_ERR_INVALID_CHARS
               'u' -> MB_USEGLYPHCHARS

Returns:
  str_out  : string in wide character encoding, or nil+error message.

Windows API used:
  MultiByteToWideChar