From: kj <no.email@please.post>
To: help-gnu-emacs@gnu.org
Subject: How to *force* a UTF-8 coding when visiting a file?
Date: Tue, 8 Jan 2013 17:12:17 +0000 (UTC) [thread overview]
Message-ID: <kchk1h$iqq$1@reader1.panix.com> (raw)
Short of adding "-*- coding: utf-8 -*-" to the beginning of a file,
is there a way to *force* Emacs to assume a UTF-8 coding?
I have found that slight corruptions to a file can easily throw
off whatever heuristics Emacs uses to guess a file's encoding.
For such situations it would be useful to be able to tell Emacs
explicitly what coding to use when visiting a file. IOW, I'm
looking for the "unobtrusive" equivalent to adding "-*- coding:
utf-8 -*-" at the beginning of the file.
thanks in advance!
next reply other threads:[~2013-01-08 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-08 17:12 kj [this message]
2013-01-08 17:36 ` How to *force* a UTF-8 coding when visiting a file? Jambunathan K
[not found] ` <mailman.16945.1357666615.855.help-gnu-emacs@gnu.org>
2013-01-08 20:13 ` kj
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='kchk1h$iqq$1@reader1.panix.com' \
--to=no.email@please.post \
--cc=help-gnu-emacs@gnu.org \
/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.