LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-03-2011, 02:31 PM   #1
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Rep: Reputation: 5
How to convert encoding between ASCII text and ASCII English text


I would like to know the difference between "ASCII text" and "ASCII English text".

I actually didn't even notice until an application started throwing all kinds of errors. In CentOS 5, "ASCII English text" seems to be the default, but even checking the /etc directory shows both file types.

Which is which? and how do I convert between one and the other (each way). It's not a unix2dos or dos2unix thing.

Here's an example of what I'm seeing:

Code:
# file *
CentOS-Base.repo:         ASCII English text
CentOS-Debuginfo.repo:    ASCII English text
CentOS-Media.repo:        ASCII English text
CentOS-Vault.repo:        ASCII English text
cfixedfile.txt:           ASCII text
mirrors-rpmforge:         ASCII text
mirrors-rpmforge-extras:  ASCII text
mirrors-rpmforge-testing: ASCII text
rpmforge.repo:            ASCII text
The only thing I can think of is sometimes I use pico (Yes I installed the Alpine package) or nano, sometimes I use vi (on CentOS that's an executable located at /bin/vi), and I usually use vim (on CentOS that's an exectuable located at /usr/bin/vim).

I don't know why, but on most distros vi is just a symlink to vim but on all the CentOS boxes I build they're both their own executables (vim 7.0.237).
 
Old 08-03-2011, 03:56 PM   #2
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Original Poster
Rep: Reputation: 5
here's an update...

by default, on CentOS 5:

when you create a file with vi it is of type:

Quote:
ASCII text
When you create a file with vim it is of type:

Quote:
ASCII English text
And I still don't understand the difference or why. Can someone shed some light on this and how to convert between one, the other, and perhaps how to make the "set:" command convert between one and the other or switch a default setting in the rc files?

Thanks, this is strange to me.
 
Old 08-03-2011, 04:55 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,962

Rep: Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482
Technically ascii is only english or really a US set codes to represent a way to use a teletype.

vim further identifies it because vim could be set to some other keymap.

wiki may be best source of possible extensions.

"As computer technology spread throughout the world, different standards bodies and corporations developed many variations of ASCII to facilitate the expression of non-English languages that used Roman-based alphabets. One could class some of these variations as "ASCII extensions", although some misuse that term to represent all variants, including those that do not preserve ASCII's character-map in the 7-bit range."
 
0 members found this post helpful.
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to convert binary number to text/ascii? peterson.julia Linux - Newbie 4 03-17-2011 12:45 AM
convert file from UTF8 to ASCII encoding graemef Programming 8 12-15-2008 05:45 AM
Convert ASCII text to an audio file ed_homeLinux Linux - Software 1 07-22-2005 01:30 PM


All times are GMT -5. The time now is 07:51 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