- May 23, 2002
- 16,928
- 8
- 81
Howdy,
I'm trying to make a simple menu in a Batch file through Notepad and am having a problem. I want to use Unicode characters so I can make a border around the menu. I can set it up and such but when I save it through Notepad, it tells me that I have to save it as Unicode for it to retain the ascii characters (alt + code). So I do that and it saves fine.
However, when I then try to run the BAT file, I get an error that
'¦' is not recognized as an internal or external command
It's like it's putting some character at the beginning of the file that Windows can't interpret.
Anyone know how I can make this work? I can save it as ANSI and the menu works fine but I don't get the borders that I want because ANSI removes the special characters.
Thanks.
Also, I tried saving it as Unicode, Unicode big endian, and UTF-8.
Unicode and big endian give the error above and the file doesn't even run.
UTF-8 lets the file run but the ascii characters don't show up. Instead I get:
GòÜGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGò¥
instead of
+---------------------+
I'm trying to make a simple menu in a Batch file through Notepad and am having a problem. I want to use Unicode characters so I can make a border around the menu. I can set it up and such but when I save it through Notepad, it tells me that I have to save it as Unicode for it to retain the ascii characters (alt + code). So I do that and it saves fine.
However, when I then try to run the BAT file, I get an error that
'¦' is not recognized as an internal or external command
It's like it's putting some character at the beginning of the file that Windows can't interpret.
Anyone know how I can make this work? I can save it as ANSI and the menu works fine but I don't get the borders that I want because ANSI removes the special characters.
Thanks.
Also, I tried saving it as Unicode, Unicode big endian, and UTF-8.
Unicode and big endian give the error above and the file doesn't even run.
UTF-8 lets the file run but the ascii characters don't show up. Instead I get:
GòÜGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGòÉGò¥
instead of
+---------------------+