Character help?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
goodduck4
Posts: 1
Joined: 12 Jan 2015 16:33

Character help?

#1 Post by goodduck4 » 12 Jan 2015 16:50

Hi, I am trying to make a game in batch (noob in batch but it looks like it will be fun) and I encountered my first problem. Does anyone have a website where i can see what characters show what in a batch file. I can not word this well so put this into a batch file and look...
@echo off
color 0a
Echo.
Echo. °°°°°°°°°°°°°°°°°°°°°°°°°°°
Echo. °°°°°ÛÛ°ÛÛ°°°Û°°°Û°°ÛÛÛ°°°°
Echo. °°°°Û°°°Û°Û°Û°Û°Û°Û°Û°°°°°°
Echo. °°°°°Û°°ÛÛ°°ÛÛÛ°Û°°°ÛÛÛ°°°°
Echo. °°°°°°Û°Û°°°Û°Û°Û°Û°Û°°°°°°
Echo. °°°°ÛÛ°°Û°°°Û°Û°°Û°°ÛÛÛ°°°°
Echo. °°°°°°°°°°°°°°°°°°°°°°°°°°°
Echo. °°±°I°°N°°V°°A°°D°°E°°R°±°°
%~1
Echo. °°±°°°°°°°°°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°°°°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°°o°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°°°°°°°°°°°°°°°°±°°
Echo. °°±°°°²²°°o°²²°°°°²²°°°°±°°
Echo. °°±°°²²²²°°²²²²°°²²²²°°°±°°
Echo. °°±°°°°°°°Û°°°°°°°°°°°°°±°°
Echo. °°±°°°°°°ÛÛÛ°°°°°°°°°°°°±°°
Echo. °°±±±±±±±±±±±±±±±±±±±±±±±°°
Echo. °°°°°°°°°°°°°°°°°°°°°°°°°°°
Echo. °°°°°°: SmartGenius :°°°°°°
Echo. °°°°°° Corp. 2010 °°°°°°
Echo. °°°°°°°°°°°°°°°°°°°°°°°°°°°
pause
It doesn't look like that... The characters appear different when you open them in a batch file. So my question is anyone know a website where I can see what character looks like what in a batch file? Thanks :)

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Character help?

#2 Post by Ed Dyreen » 12 Jan 2015 18:29

this depends on which codePage u use, different codePages are in use for different regions, to allow language specific characters to be displayed properly.

Code: Select all

C:\profSys\ADMIN>chcp
Actieve codetabel: 850

äš*øÊ?Ãë`Ë* à(ñ+žáÄÇ?€88888²²8²²888²888²88²²²8888
€88888²²8²²888²888²88²²²8888

C:\profSys\ADMIN>chcp 037
Actieve codetabel: 37

äš*øÊ?Ãë`Ë* à(ñ+žáÄÇ?€°°°°°ÛÛ°ÛÛ°°°Û°°°Û°°ÛÛÛ°°°°

°°°°°ÛÛ°ÛÛ°°°Û°°°Û°°ÛÛÛ°°°°
C:\profSys\ADMIN>
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx

unless you set the codePage, you can't predict how it will look on a users console

Code: Select all

C:\profSys\ADMIN>chcp /?
Het nummer van de actieve codetabel weergeven of dit instellen.

CHCP [nnn]

  nnn   Het nummer van de codetabel.

Om het nummer van de huidige codetabel te zien, typt u CHCP zonder parameter.

C:\profSys\ADMIN>
for more help use chcp /?

Post Reply