Re: What are these ASCII values?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As a follow-up, I thought I should add the following in case it is
helpful in determining why I'm finding these codes. But regardless of
the method, the fact that the codes are there is still a mystery.

This is the code I used to open and read the lines of the text file:

lngFileNum = FreeFile
Open strPathFile For Binary As #lngFileNum
TotalFile = Space(LOF(lngFileNum))
Get #lngFileNum, , TotalFile
Close #lngFileNum
IndividualLines = Split(TotalFile, vbNewLine)

I then use the Instr() function to see if the ASCII values in question
are present in each line

I'm analyzing lines rather than the whole file because I'm also
tracking which lines contain certain codes.

If, on the other hand, I open the file for input and use the line
input statement, and then search each line character by character
using the Mid$() function ( for Chr$(222) , as an example ), then I
don't find these ASCII values.


On Thu, 23 Jun 2005 15:49:40 GMT, dsarvas@xxxxxxxxx (Don) wrote:

>I wrote an application that, in part, looks for and eliminates
>unwanted control codes in plain text files by searching their ASCII
>decimal values. It also locates, but leaves intact, certain control
>codes needed for formatting such as Chr$(12) (page break), Chr$(13)
>(carriage return), Chr$(10) (line feed), etc.
>
>Some typical unwanted codes include Chr$(0) (NULL), Chr$(5) (ENG),
>etc. Usually when these appear in the file, they are represented by a
>character that can be seen on the screen or on paper when printed
>(e.g. @ or ^A, etc.)
>
>I was used to seeing only control codes that are represented by the
>standard ASCII decimal values below 128. Just out of curiosity, I
>added a search for decimal values in the extended ASCII character set
>and was surprised to find a few that I can't identify.
>
>I was surprised because these are hidden in the text files. There are
>no characters on the screen or in the printout to indicate that these
>are present and I can't find a pattern in the text to determine why
>these show up where they do. I'm assuming they have something to do
>with the formatting of the text and that's why I don't see any
>characters representing the codes, but some appear so infrequently
>they don't seem to have any specific purpose for being there.
>
>The decimal values that are showing up in my search include the
>following and always show up paired just the way I list them. They
>don't appear to be a problem since they aren't visible and don't
>appear to adversely affect the files in any way that I can determine.
>
>Can anyone identify the following pairs of ASCII decimal values and
>their purpose or why they would be hidden in text files?
>
>222/254 - This shows up for nearly all, if not all, lines of text in
>the file
>
>140/156 - This will show up several times in the file, but
>infrequently.
>
>198/230 - This shows up rarely.
>
>Thanks,
>
>Don
>

.



Relevant Pages

  • Re: EBCDIC, was [Re: For Rod Pemberton on gcc/mvs]
    ... as long as they map to alpha-numeric. ... A good source for IBM's character codes is ... near the end called "Character Assignments". ... But IBM has had code page support for a long time, ...
    (alt.lang.asm)
  • Re: Does sort command support multi-byte characters, such as CJK?
    ... What are the exact codes? ... Does the Japanese begin with a hiragana character ... lexicographically as strings of bytes). ... Korean is spread to nearly opposite parts of the Unicode table. ...
    (comp.unix.shell)
  • Re: replacing ^M with emacs
    ... keystrokes and the codes they produce. ... key combination pressed and an ASCII code. ... Character mode programs under X through some terminal emulation ... What is control-q for and what is ...
    (freebsd-questions)
  • Re: What are these ASCII values?
    ... regard to the codes I list in my posting that I can't identify. ... character representation and those characters do not appear in the ... the basic ASCII character set and their associated character ... representations as well as their purpose. ...
    (microsoft.public.vb.general.discussion)
  • Re: code critique
    ... There are NO other character in the ASCII character set. ... There are a few control codes in the ASCII codes. ... Yes, and interestingly, there's not a 1-1 correspondance between some ...
    (comp.lang.lisp)