LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   How to save text file with ASCII code?? (https://www.linuxquestions.org/questions/general-10/how-to-save-text-file-with-ascii-code-694632/)

Nejad 01-03-2009 02:40 AM

How to save text file with ASCII code??
 
Hi All,

How i can save text file with ASCII code, not with ANSI code.

thanks and best regards

AceofSpades19 01-03-2009 02:41 AM

What is ANSI code?

Nejad 01-03-2009 03:08 AM

Quote:

Originally Posted by AceofSpades19 (Post 3395389)
What is ANSI code?

this the ANSI code "American National Standards Institute - ANSI"

because the default code when i save a text file is ANSI code

thanks

Nejad 01-03-2009 06:12 AM

Hi All,

How i can save text file by ASCII code from encoding option, this when i save a text file.

thanks

ErV 01-03-2009 07:25 AM

Quote:

Originally Posted by Nejad (Post 3395387)
Hi All,

How i can save text file with ASCII code, not with ANSI code.

thanks and best regards

ASCII stands for 7-bit encoding, with english only charset. All 8bit encodings are equivalent to ascci, as long as you don't use advanced characters (with code larger than 0x7f). To convert text ASCII you can:
1) use GNU recode (non-ascii symbols will be lost, I think)
2) use links browser configured to use 7-bit ascii charset. In this case text will be transliterated.
3) Use any 8-bit encoding and avoid non-english characters from beginning. Or save text as any 8bit encoding (except utf8) then write script that removes all letters with code larger than 0x7f.
4) You text editor might allow to select ascii encoding when you save file.

dhanyaelizabeth 01-03-2009 08:36 AM

Quote:

Originally Posted by Nejad (Post 3395541)
Hi All,

How i can save text file by ASCII code from encoding option, this when i save a text file.

thanks

Are you creating/saving the text file using some program (if so what programming language are you using?) or some text editing software (like TextPad or NotePad?)

Linux Archive

Nejad 01-04-2009 12:31 AM

Hi All,

only, i want to save codeword for hp c++ compiler in a textpad file, but in ascii code to i set in unix server to activate the c++ product.

thanks and best regards

honeybadger 01-04-2009 02:17 AM

hi Nejad,

I think I had an issue like this and I used the hexeditor and it worked. I am not sure it was ASCII but there were a lot of weird characters :)


Hope this helps


All times are GMT -5. The time now is 01:28 PM.