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)).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.