Access files with chinese filenames with Lotusscript

I have a Lotusscript agent that reads all the files in a specified directory/folder eg C:\temp\myfiles using Dir$(pathName$, 0).

Each file found is attached to a newly created document. The resulting documents can then be categorised as needed and searched including the attached file content.

All works well until a file name with chinese characters is found. The file name is shown (using the variables in debug mode) with question marks substituting for the chinese characters.

The agent is run locally on the PC.

File names using ‘windows explorer’ show with correct chinese characters (Chinese language has been enabled from the PC control panel options, Regional and Language options, Install files for East Asian languages. Under installed services, Chinese PRC and Taiwan are listed.)