I have a VB6 application that makes a list of folder directories and matches file names. Some of them are accented, for example, "Guimarães.txt" (small A with a tilde). Both the VB Dir function and the FileSystemObject functions cannot recognize the accented character and instead return the file name as "Guimar? Es.pdf", so I cannot open the file afterwards. I see the file correctly in Windows Explorer
This occurs in only one environment running Windows Server 2003 R2. On our test systems, we can read the file correctly, although it is mainly Windows 2008 and Windows 7. At first I thought it was not a FSO version, but since "Dir" gives the same results, I don’t think so. In addition, when I write the file name to the log file, this is also not true. Therefore, I think that at a very early stage he cannot cope with character and replaces it with a question mark.
What I need to install is the cause of the problem: it is up to the Windows version or my regional settings (which I can’t see because my account is locked), and what can I do to solve the problem. At the moment, I have asked users not to use these characters, but this is not a long-term solution.
Thanks.
source share