0

Years ago, most text editing applications had the option to set the default file encoding to US-ASCII. Now I can't find any recent editor on Linux that allows you to choose ASCII. If the purpose is to restrict the character set to 7-bit ASCII, then choosing a superset like UTF-8 or ISO-8859-1 is not sufficient.

I would like to be able to use modern GNOME and Qt based desktop utilities, but I need to be able to set them up with US-ASCII as the default file encoding. Is there any way to do this on Linux (Debian)?

  • What do you want to happen when you type or paste a non-ascii character? – godlygeek Mar 9 at 6:15
  • On opening a file containing non-ASCII characters, it should issue a warning and preferably highlight the characters. If an open file contains non-ASCII characters, it should at least refuse to write out the file without an override and preferably highlight the characters. – Deqanix Mar 9 at 14:51
  • It seems you can do something along these lines with vim, as discussed in the answer at unix.stackexchange.com/questions/108020/…. Vim won't issue a warning, but it can display non-ASCII characters in hex notation. – David Yockey Aug 9 at 1:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.