PLE forum

Full Version: TIP: How to use extended ASCII characters in the batch mode processing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When one uses extended ASCII characters (when working with characters outside the ASCII range of 0-127) in the batch file, it will not display the correct characters during a run of the batch file. The code page should be changed in the batch file.

One has to use the command CHCP, see this article, before the use of extended characters in the filename and/or pathname in the batch file.

For example if you have a filename "BC3 ambiënt file n.plex". The ASCII number of the character ë is 137. Running the batch file without CHCP 1252 won't work. This is not a bug in Ple4Win but by design in the console. The default CHCP is 850.

Always start with CHCP 1252 if you want to use extended ASCII characters. I did get this code page change tip from one of the Ple4Win support staff.

---Start of batch file---
CHCP 1252
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "D:\BC3 ambiënt file 1.plex"
if errorlevel 9 exit
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "D:\BC3 ambiënt file 2.plex"
if errorlevel 9 exit

---End of batch file---

@Ple4Win support staff: This tip can be added in the Ple4Wiin helpfile at the batch processing area.
With the Windows operating system, using non-ASCII characters on the command line always is a bit tricky. This is a limitation of the operating system, not of the Ple4Win program.

Shaswin's trick might indeed help in a lot of situations, especially with european languages.
With other languages, such as Arabic or Russian a different code page might be necessary. See e.g. this webpage for a list of languages and corresponding code pages.