I have written a script in vbs that basically opens a set of selected files,
performs a search on each file and replaces each occurrence of a string with
a different string. This works fine on ASCII files.
However the original files that I will be searching are Unicode files. With
these files, even though I have stated in the OpenTextFile command that the
files are to be opened as Unicode, the search finds nothing. I have
confirmed that the files are unicode by checking the first two characters
are ASCII 255 and 254. If I copy the contents of the Unicode file to a new
text file the search works fine.
What is my problem? Do I have to have a search string that is written in
Unicode? I'm using RegExp to do the search. I do not want to save or convert
the original files.
I thought I'd find a solution in the newsgroups quickly on this one. But
have had no success yet. Please help as the script is fully functional
except for this "simple" problem.
Thanx in advance.
Rob