The background is this, because the project needs to be installed with silent install some programs, and the installation parameters are some high ASCII characters, such as Ùé. With the code, using the default encoding (ANSI, which I used in the French system) to create the bat file and write this character to the file, there is no problem. However, when the bat file is executed, it is found that the high ASCII characters are displayed in the console as other characters!!! I think for a long time did not want to understand how, because the console encoding is also used by the default latin-1, file saving is also used by the default encoding (on the FR system, ANSI is the Latin-1 bar, I think so).
So search ah, this kind of things, domestic information is relatively small ah ... But Kung fu is not a conscientious, found a foreign forum post, address sent on http://stackoverflow.com/questions/9849486/ Is-it-possible-to-use-extened-ascii-characters-in-bat-file
Workaround:
1. Use Utf-8 to save the file, the first line is a blank line, the second line is CHCP 65001
2. Set the console's codepage to 65001 (Utf-8 codepage),
3. Set the console font to Lucida Console, which is raster font by default on a French/German system
That's all you can do.
Conversion problem with high ASCII characters from BAT file to Dos console