I am trying to set up a replicated file server here in the US for our Japanese division's database. I have everything pretty well set up and working, but I have run into some trouble getting the replication process automated.
I have written a script that loops through the list of folders from a text file, and executes the purge & replicate commands for each folder. This works fine with replication I have set up for replication of our US division's English server database. The issue is centered around the Japanese (Kanji?) characters that are used to show the "Root Folder" base name. The folder name I see is a mix of Japanese & English characters, e.g. /ルートフォルダー/TEST The commands execute just fine if I enter them manually in a DOS window, by copying & pasting the folder name I exported using the folder list report. When I extract them from the text file via a DOS script, the log reports that it can't find the folder, but the characters do not match the text file list:
For example, the list says:
/ルートフォルダー/TEST
but the error message refers to it as:
・ソ/繝ォ繝シ繝医ヵ繧ゥ繝ォ繝繝シ/TEST
Any ideas? I can't find much of anything concerning DOS scripts and Japanese characters.
The solution was beautifully simple, as suggested by one of colleagues in Japan.
I opened the folder list text file in Notepad, and performed a Save As - selecting ANSI as the encoding option.
Thanks for the suggestions!