File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Extended ANSI character error

prashant rathod
Greenhorn

Joined: Apr 05, 2012
Posts: 11
hi
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
Sheriff

Joined: Oct 13, 2005
Posts: 40061
    
  28
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
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
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: http://www.robelle.com/smugbook/ansichar.html, http://ascii-table.com/ansi-codes.php

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: http://aspose.com/file-tools
 
subject: Extended ANSI character error