LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 01-03-2009, 02:40 AM   #1
Nejad
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
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
 
Old 01-03-2009, 02:41 AM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
What is ANSI code?
 
Old 01-03-2009, 03:08 AM   #3
Nejad
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AceofSpades19 View Post
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
 
Old 01-03-2009, 06:12 AM   #4
Nejad
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Hi All,

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

thanks
 
Old 01-03-2009, 07:25 AM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Nejad View Post
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.

Last edited by ErV; 01-03-2009 at 07:27 AM.
 
Old 01-03-2009, 08:36 AM   #6
dhanyaelizabeth
LQ Newbie
 
Registered: Jan 2009
Posts: 27

Rep: Reputation: 15
Quote:
Originally Posted by Nejad View Post
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

Last edited by dhanyaelizabeth; 01-10-2009 at 03:12 PM.
 
Old 01-04-2009, 12:31 AM   #7
Nejad
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 01-04-2009, 02:17 AM   #8
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 847

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
suggestions on how to code a program that would edit and save a text file tinieprotonjam Programming 5 01-28-2007 06:28 AM
wiring to a text file and being able to save and add to it mrobertson Programming 1 07-27-2005 02:27 PM
Convert ASCII text to an audio file ed_homeLinux Linux - Software 1 07-22-2005 12:30 PM
how to cat a text file and save it as a variable mrobertson Programming 37 07-05-2005 08:20 AM
Displaying a text file in ascii?? bauld Linux - General 4 11-21-2001 07:33 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration