• Welcome to Valhalla Legends Archive.
 

Hex or character replacements

Started by oldskooldrew, August 30, 2004, 05:04 PM

Previous topic - Next topic

oldskooldrew

Was wondering if anyone knew of any documentation of which ascii or hex values come out as a (.) on hex editors, if anyone has this, or knows where i can find out please.

K

Pretty sure it depends on what the hex editor decides is "printable."  all characters less than 0x21 are pretty much non printable.

Yoni

Rather less than 0x20, since 0x20 is the space.

The printable range is: 0x20 - 0x7e.

0x00 (0x01) - 0x1f are low ASCII. (Not sure whether 0 is included, that's probably a semantics issue.) These are "control" characters, such as 0x09 tab (\t), 0x0d carriage return (\r), 0x0a line feed (\n), 0x07 beep (\a), etc.

0x7f - 0xff are high ASCII. Mostly undefined, but can be used for a 2nd language (with an appropriate codepage loaded).

MyndFyre

Quote from: Yoni on August 30, 2004, 05:23 PM
0x7f - 0xff are high ASCII. Mostly undefined, but can be used for a 2nd language (with an appropriate codepage loaded).

Back in the days of DOS, we also used 0x7f to 0xff as the "DOS Extended Character Set," which consisted largely of text-style drawing characters used in menuing and "graphics" systems.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Yoni

Quote from: MyndFyre on August 30, 2004, 05:54 PM
Back in the days of DOS, we also used 0x7f to 0xff as the "DOS Extended Character Set," which consisted largely of text-style drawing characters used in menuing and "graphics" systems.

And of course...

C:\>mode con cp prepare=972
C:\>mode con cp select=972

==> Hebrew chars in high ASCII. :)

drivehappy

I would like to point out that http://asciitable.com/ is a good resource if you need to lookup values.

oldskooldrew

ok, thanks that website helped a lot, now how would i create a function that replaced all the values that i want to be (.) without making a long function searching for each character or characters hex? is this possible?

MyndFyre

#7
Quote from: oldskooldrew on August 31, 2004, 05:06 PM
ok, thanks that website helped a lot, now how would i create a function that replaced all the values that i want to be (.) without making a long function searching for each character or characters hex? is this possible?

Oh I don't know.  Maybe we can try this novel little idea called programming:
Quote from: Yoni on August 30, 2004, 05:23 PM
The printable range is: 0x20 - 0x7e.


If val > &H1F And Val < &H7E Then
'  Print ASCII value
Else
'  Print "."
End If


Whoo.  I don't want to work my mind too much.

(If you need help translating that to another language or with other identifiers, let us know).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Adron

Quote from: MyndFyre on August 31, 2004, 07:47 PM
Oh I don't know.  Maybe we can try this novel little idea called programming:
Quote from: Yoni on August 30, 2004, 05:23 PM
The printable range is: 0x20 - 0x7e.


If val > &H1F And Val < &H7E Then
'  Print ASCII value
Else
'  Print "."
End If


Whoo.  I don't want to work my mind too much.

Yeah, be careful working your mind too much, and avoid these difficult problems. They require a lot of thinking to get them right. It's very easy to mess up. We all love tildes, right?

Banana fanna fo fanna

hi i typd dat into da vb thing and it said an error HELP WAHTS RONG@!#!?