• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extended ANSI character error

 
prashant rathod
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49361
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic