Saving as...

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Mario Benner

Saving as...

Post by Mario Benner »

I haven't been able to find out how can I save a file as an ASCII file. There is no option for it in the encoding section of the save screen. I am sure this is a simple problem and any help will be greatly appreciated.

Thanks,

Mario Benner
Thomas Schremser

Re: Saving as...

Post by Thomas Schremser »

Hi Mario!

In original ASCII describes a seven bit character set. These characters are identical in DOS and in ANSI. Nowadays the abbreviation "ASCII" often is used as an synonym for ANSI.

HTH
Greetings
Thomas
Mario Benner

Re: Saving as...

Post by Mario Benner »

Saving my file in ANSI does not solve my problem. The file is being used by an application that can only support true ASCII format. When I try to use the ANSI format I am recieving errors. Does anyone know if there is a way to save it as ASCII, using this, or any other program.

Thanks Again....
Thomas Schremser

Re: Saving as...

Post by Thomas Schremser »

Hi Mario!

> Saving my file in ANSI does not solve my problem. The file is being
> used by an application that can only support true ASCII format. When
> I try to use the ANSI format I am recieving errors.

Since ASCII is seven bit it only can represent character codes from 32 (which is a blank) to 128. In pure ASCII characters like accents, umlauts, ... are not allowed. You can only use the following characters:

!"#$%&'
()*+,-./
012345687
89:;<=>?
@ABCDEFG
HIJKLMNO
PQRSTUVW
XYZ[\]^_
`abcdefg
hijklmno
pqrstuvw
xyz{|}~

HTH
Greetings
Thomas
Andreas

Re: Saving as...

Post by Andreas »

Thomas, not quite right.
Of course the control characters (0 to 31) are allowed in pure ASCII (otherwise, all pure-ASCII Files would be one-liners as Carriage Return and Linefeed are 13 and 10 resp.).

128 is NOT allowed, as it is binary 10000000 which is an eight-bit number.
(ok, maybe you meant that with "to 128" but it was not very clear)

With other words: all characters with a code smaller than 128 are allowed in pure ASCII.

Andreas
Roy Beatty

Re: Saving as...

Post by Roy Beatty »

Mario,

It would help if you could describe step-by-step how you or we can produce a file in Windows acceptable to your application. For example, does creating a file in Notepad yield a usable or unusable file? Unly iunder certain circumstance?

Also, on what operating system does your target application run? Is it running on Unix? Is it a database app?

Roy
Thomas Schremser

Re: Saving as...

Post by Thomas Schremser »

Hi Andreas!

> Of course the control characters (0 to 31) are allowed in pure ASCII
> (otherwise, all pure-ASCII Files would be one-liners as Carriage
> Return and Linefeed are 13 and 10 resp.).

Correct. By not mentioning the contol characters I wanted to simplify, but it seems that I just made it less clear.

> 128 is NOT allowed, as it is binary 10000000 which is an eight-bit
> number. (ok, maybe you meant that with "to 128" but it was not very
> clear)

That was just a simple Typo :-)

Greetings
Thomas
Marco

Re: Saving as...

Post by Marco »

Have you tried to save the file with DOS encoding?

It should be Extended ASCII, as use in old DOS days.

Anyway, ANSI and ASCII should share the first 128 codes (0-127, i.e. 7 bits). There are differences in 8-bit characters, but if you use only 7-bit codes you shouldn't have problems with ANSI as well.

Just my 2 cents...

Marco (from Italy).
Post Reply