all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Tech Stuff <techstuff1971@yahoo.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: File Encoding Issue on Windows
Date: Tue, 12 Mar 2013 18:23:42 +0100	[thread overview]
Message-ID: <DDED19B3-CC51-449C-9A85-63C7B9CD0B9E@Web.DE> (raw)
In-Reply-To: <1363100259.90696.YahooMailNeo@web165001.mail.bf1.yahoo.com>


Am 12.03.2013 um 15:57 schrieb Tech Stuff:

> To be clear, when I posted yesterday, it was in emacs that I was seeing the extraneous characters, not in notepad.

That makes it clearer! GNU Emacs 22.1 is pretty old and has only rudimentary UTF-8 support. The recent GNU Emacs 24.x (24.3. was just released) versions are much better.

How to handle encodings? For GNU Emacs you can use file-local variables as in:

	;; -*- mode: Emacs-Lisp; coding: utf-8-unix; -*- 

or

	%%% Local Variables:
	%%% mode: LaTeX
	%%% TeX-engine: xetex
	%%% fill-column: 99999
	%%% coding: utf-8-unix
	%%% TeX-command-default: "XeLaTeX5E"
	%%% End:
	%

The first example is meant for the file's beginning, the latter for its end. (Notice the different comment characters!) When you see, i.e. know, that GNU Emacs is using the wrong encoding to display (present) the file's contents, you can use C-x RET r <encoding name> RET (revert-buffer-with-coding-system) to try another encoding. Then record this value in a file-local variable and save the file.

It's all in the documentation.

--
Greetings

  Pete

Rain is saved up in cloud banks.




  parent reply	other threads:[~2013-03-12 17:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12  3:08 File Encoding Issue on Windows Tech Stuff
2013-03-12 10:50 ` Peter Dyballa
2013-03-12 14:57   ` Tech Stuff
2013-03-12 16:32     ` W. Greenhouse
2013-03-13 17:44       ` Tech Stuff
2013-03-13 20:37         ` Peter Dyballa
2013-03-13 21:11           ` Tech Stuff
2013-03-13 22:16             ` Peter Dyballa
2013-03-13 23:26               ` Tech Stuff
2013-03-13 23:41                 ` Peter Dyballa
2013-03-13 23:48                   ` Tech Stuff
2013-03-13 23:58                     ` Peter Dyballa
2013-03-14  0:38                     ` Axel E. Retif
2013-03-14  2:24                       ` Tech Stuff
2013-03-14  2:35                         ` Tech Stuff
2013-03-14  2:59                           ` Axel E. Retif
2013-03-14  4:23                             ` Tech Stuff
2013-03-14  6:07                               ` Axel E. Retif
2013-03-12 17:23     ` Peter Dyballa [this message]
     [not found] <mailman.21917.1363080184.855.help-gnu-emacs@gnu.org>
2013-03-13 12:33 ` Phoenix Gris
2013-03-13 14:48   ` Peter Dyballa
2013-03-13 15:29   ` Filipp Gunbin
2013-03-13 17:16   ` Eli Zaretskii
2013-03-13 20:33   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DDED19B3-CC51-449C-9A85-63C7B9CD0B9E@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=techstuff1971@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.