It's not a secret anymore!
The moose likes General Computing and the fly likes Extended ANSI character error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Extended ANSI character error" Watch "Extended ANSI character error" New topic

Extended ANSI character error

prashant rathod

Joined: Apr 05, 2012
Posts: 11
i am using batch file to run one program but while doing that i m using § this character in .bat file.
but the problem is that when i am trying to run that .bat file, the DOS is converting the § character to another character.
why DOS is doing this?
how do i solve this?
any suggestions?
thank you.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46412
I have never heard of ANSI characters. Do you mean ASCII?
It is likely that the DOS terminal can only cope with a restricted range of chars; remember that in C an unsigned char has the range 0-0xff. What is the integer value of §?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Ah, those young whippersnappers, they never knew the joys of early Windows versions. The ANSI character set most certainly exists, although it's dying out:,

I'm not clear on the question, though: what, exactly, does "the DOS is converting the § character to another character" mean?
I agree. Here's the link:
subject: Extended ANSI character error
It's not a secret anymore!