i have a File with "ü" CHR(129) which ist a German "Umlaut"
i use UNICODE and DIRECTORY() to get Array for GRID
i did not notice this before unter harbour / HMG

i know this from Xbase++ that DIRETORY() under GUI will return ANSI .. how about HMG

Moderator: Rathinagiri
Code: Select all
bError := ERRORBLOCK( { | oErr | BREAK( oErr ) } )
BEGIN SEQUENCE
nType := FREE_GetFileType( cPath + cFile, 0 )
nFreeHandle := FREE_Load( nType, cPath + cFile, 0 )
END SEQUENCE
ERRORBLOCK( bError )
IF EMPTY( nFreeHandle )
Msginfo( "Error loading : " + cPath + cFile )
RETURN nil
ENDIF
Code: Select all
cFile := HMG_UNICODE_TO_ANSI(cFile)
IF !FILE(cFile)
Code: Select all
SET( _SET_CODEPAGE, "UTF8" )
Code: Select all
SET CODEPAGE TO GERMAN