Hi Victor;
FWIW: Have you tried the FileWiteEX ( ) method instead? I have not encountered your Unicode issue but .... I have not used the old FileWrite ( ) method in over a decade.
BTW: Since PB 10 (being Unicode) I only use EncodingUTF16LE! within my PB applications and EncodingUTF8! when sending data to external applications. Note that WindowsVista and higher is all UTF-16LE.
Regards ... Chris