The file is probably Unicode, not ASCII.
If you add Const TristateTrue = -1
to your script, and then call Set objFile = fso.OpenTextFile(FileName, ForReading, TristateTrue)
instead of Set objFile = fso.OpenTextFile(FileName, ForReading)
, the file will be opened as Unicode instead of ASCII.
According to the documentation for Scripting.FileSystemObject
, the TristateTrue
means the file will be opened as Unicode.