This is a spot of code for Emacs 21 to get the right coding system when visiting a Project Gutenberg EBook or Etext file (http://www.gutenberg.org).
The Gutenberg files have a "Character set encoding:" in the header info, this code looks for that. I've only tried it with a limited number of files, but it does the right thing on latin-1, utf-8, and windows-1253. The gpg signature below is against my key at savannah http://savannah.gnu.org/people/viewgpg.php?user_id=2403
gutenberg-coding.el
Description: application/emacs-lisp
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDVCfrLFMCIV9q3ToRAnEuAJ9oxMVtQEcJpvwZ65T4cKtg1Y0b4wCgpFBu Ipy3gQ/RpRx3cHu2VEhksLw= =a7fD -----END PGP SIGNATURE-----
_______________________________________________ Gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
