CMD 'Special Characters'

Microsoft Windows 7 professional - upgra...
February 20, 2011 at 23:54:34
Specs: Windows 7, 4GB RAM.
So, im making a RPG game of sorts.
I am running off a 2D engine(Left right up and down as movements)
Making the maps are being a pain in the -chop-

I try to make the maps, in word, notepad, and I even tried Pnotepad.(Programmers Notepad, my personal favorite)
However, when I go to charmap, copy and paste the Line things. (http://en.wikipedia.org/wiki/File:Codepage-437.png ) The things on the bottom that look like lines, when I try to copy and paste it into notepad, it looks okay:

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓..╔═══╗.....................»
▓..║ ║.....................»
▓..╚═▬═╝.....................»
▓............................»
▓............................▓
▓............................▓
▓............................▓
▓............................▓
▓......................˜˜˜˜˜˜˜
▓......................˜˜˜˜˜˜˜
▓......................˜˜˜˜˜˜˜
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓˜˜˜˜˜˜˜
(copy and paste it into word if you really want to look at it at all, simple though)
But the things like the ▓ get messed up during the save.
And if I tell notepad to save as Unicode, my map loader wont load it.
Mind you, its not the batch's fault. Simple number, letter, dots, and everything else works perfectly fine in it.

I even whipped out my WinXP Virtual Machine and tried to open Edit.com, and edit it though there.
I can hold Ctrl+P and then put in a special character that way, but none of the lines or ▓'s come out, no matter what combination I try.

Any help or advice?
My older batch has these:
Echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
Echo ³WELCOME SCREEN ³
Echo ÉÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍ»
Echo ºDear User- º

(You get the idea)
And those look like lines when opened in CMD, but opened in any notepads it looks like foreign symbols.

What should I do?


See More: CMD Special Characters

Report •


#1
February 21, 2011 at 00:02:07
You need a monospaced font.

Report •

#2
February 21, 2011 at 00:09:39
In word, note, or does it matter?

Report •

#3
February 21, 2011 at 00:12:06
I assume they haven't changed cmd.exe much since XP, but I can't be sure or test anything on vista/win7. It generally works on xp(in English), I know that much.


Box drawing/special/extended ANSI characters won't display properly on systems with non-English(Though I'm not sure about "international" English 125X codepages) install languages/oem codepages.


********************* Using a program I wrote *********************

I wrote a program that might really help you along:

http://judago.webs.com/downloads.ht...

Be sure to get "cmdimate" and not "batimate", because batimate scripts require a binary (wcde.exe) and convert all extended characters to slash patterns.

You would of course have to touch up the frames manually and copy/paste them into your script.


****************** The other/manual way ******************

The other way to do this is to paste the list from response #7 in this thread:

http://www.computing.net/answers/pr...

Into notepad and copy the accented characters into you script. If you want to see what the characters look like use the type command on the saved text file from #7.


Report •

Related Solutions

#4
February 21, 2011 at 00:16:43
Oh wow, now THAT is very handy.
Thank you very much lol.

But, im curious, how did you write that?
It looks like its 16bit, and 16bit things wont run on a x64 it seems. I thought id have to pop it open in my Virtual XP, but I guess not.

Oh well, regardless, thanks alot, its VERY useful.


Report •

#5
February 21, 2011 at 00:24:55
It's a 32bit executable written in c++ using the windows API, specifically the console API's.

http://msdn.microsoft.com/en-us/lib...


The source is quite a mess, but is in the .zip anyway. You are more than welcome to look through the ~8000 lines of code ;).

Just be aware there are some less than perfect coding practices without.


Report •

#6
February 21, 2011 at 01:07:52
One last question for you, if I may.
Not related to my above post.
But I looked at your other programs, and wcde Is very, very great as a music player for what I want.
And the mouse features, and other things will definately come in handy.

But I was wondering, just curious I guess since I never looked into C.
But how hard would it be to make it play MP3s?
Just curious, but WAVs are HUGE(When compared to mp3s), and isnt very 'sending' friendly.

I dont expect a huge tutorial or anything :P Just curious.
o.o C++ Looks alot simpler then I thought it was..I should look into it sometime.(When looking at the source)


Report •

#7
February 21, 2011 at 01:14:44
MP3 Would be a lot harder.......

Wav comes with windows; the PlaySound function does all of the work. All wcde is doing is pass a filename and some flags to the function.

I haven't ever worked with MP3's but my guess is that the easiest way in c/c++ would be to use a third party .dll and load it on the fly. Either that or try to re-impliment....

In short I'm pretty much in the dark too when it comes to MP3....


Report •

#8
February 21, 2011 at 01:17:30
Hmm, well, thanks for all your help!
I think ill make use of your wcde too lol. Thank you.

Report •

#9
February 21, 2011 at 04:49:30
Frozen2Dream: how hard would it be to make it play MP3s?
Less hard than you'd think

How To Ask Questions The Smart Way


Report •


Ask Question