The essential function to use on ANSI text is STRCONV(string,9).
That is the nConversionsetting from DBCS to UTF-8, where DBCS stands for double byte character set, which many don't recognize as the correct source setting for the VFP ANSI encoded strings, but that works for the full set of eg ANSI 1252 code page.
So instead of FWRITE(handle, string) you do FWRITE(handle, STRCONV(string,9)).
Bye, Olaf.