The ff_oem2uni function converts an OEM character into Unicode character.
WCHAR ff_oem2uni ( WCHAR oem, /* [IN] OEM character */ WORD cp /* [IN] Code page */ );
The function returns a Unicode character in UTF-16 encoding converted from input OEM character. If the input character code in specified code page is invalid, a null character is returned.
This function is provided in ffunicode.c and required when FF_USE_LFN != 0. It is intended to be used by FatFs but also application program may use this function.