Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-03-2011, 01:31 PM   #1
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:

# 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, 02:56 PM   #2
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:

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

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, 03:55 PM   #3
Registered: Mar 2008
Posts: 16,885

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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.


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-16-2011 11:45 PM
convert file from UTF8 to ASCII encoding graemef Programming 8 12-15-2008 04:45 AM
Convert ASCII text to an audio file ed_homeLinux Linux - Software 1 07-22-2005 12:30 PM > Forums > Linux Forums > Linux - General

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

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