This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIP: How to use extended ASCII characters in the batch mode processing
30-04-2016, 12:03 AM, (This post was last modified: 30-04-2016, 03:14 AM by shaswin.)
#1
TIP: How to use extended ASCII characters in the batch mode processing
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.

Example:
---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.
Reply
03-05-2016, 08:47 AM,
#2
RE: TIP: How to use extended ASCII characters in the batch mode processing
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)