Forum Discussion
soda
15 years agoContributor
Hi Allen,
Thanks for the help. Both approches worked however, they reported different results. Using the statement:
The characters were read in and when reported to the log, seemed to have changed to different characters.
Using the statement:
F = aqFile.OpenTextFile(fileToReadFrom, aqFile.faRead, aqFile.ctUTF8);
The characters were read in and reported in the log as expected.
That is very strange. Any clue as to why the FileSystemObject method would be different? The text file is UTF-8 and my project character encoding is set to UTF-8.
That was the first strange thing. The other item is that the debugger displays double-byte characters as ?????? when inspecting the variable. Any chance that can be fixed?
Thanks again for the help. I have been using the FileSystemObject because I was hoping to port some of my generic functions over to the Mac(to be used with a different tool), and therefore have avoided using aqFile. I'll keep poking around with the FileSystemObject to see if I can figure out why it is different, but hopefully you or someone can offer some insight.
I've attached a screen shot of the text file, code and Test Log.
Thanks again!
Mark
Thanks for the help. Both approches worked however, they reported different results. Using the statement:
F = fso.OpenTextFile(fileToReadFrom, ForReading, false, -1);
The characters were read in and when reported to the log, seemed to have changed to different characters.
Using the statement:
F = aqFile.OpenTextFile(fileToReadFrom, aqFile.faRead, aqFile.ctUTF8);
The characters were read in and reported in the log as expected.
That is very strange. Any clue as to why the FileSystemObject method would be different? The text file is UTF-8 and my project character encoding is set to UTF-8.
That was the first strange thing. The other item is that the debugger displays double-byte characters as ?????? when inspecting the variable. Any chance that can be fixed?
Thanks again for the help. I have been using the FileSystemObject because I was hoping to port some of my generic functions over to the Mac(to be used with a different tool), and therefore have avoided using aqFile. I'll keep poking around with the FileSystemObject to see if I can figure out why it is different, but hopefully you or someone can offer some insight.
I've attached a screen shot of the text file, code and Test Log.
Thanks again!
Mark