Using ASP's file system object (FSO), I'm trying to read a txt file with OpenTextFile
that contains French characters (e and a with accents for e.g). Those characters come out wrong.
I tried specifying the format to TristateTrue
to open the file as Unicode but to no avail.
I've been reading about using the ADO Stream object instead but I hoped there would be a way with FSO. Does anyone have any ideas?
Most likely the file is saved in UTF-8 encoding. The FileSystemObject does not handle UTF-8.
Either have the file saved as Unicode or use the
ADODB.Stream
object. TheADODB.Stream
has aLoadFromFile
method and does support UTF-8.