From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: Using utf-8 and only utf-8
Date: Sun, 14 Sep 2008 21:12:55 +0000 (UTC) [thread overview]
Message-ID: <gajuom$6rr$1@reader1.panix.com> (raw)
In-Reply-To: mailman.17642.1219801733.18990.help-gnu-emacs@gnu.org
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
In article <mailman.17642.1219801733.18990.help-gnu-emacs@gnu.org>,
Maurício <briqueabraque@yahoo.com> wrote:
>Nikolaj Schumacher a écrit :
>> Maurício <briqueabraque@yahoo.com> wrote:
>>
>>> Is it possible to set something
>>> in .emacs so that emacs will
>>> always, no matter what, save any
>>> file in utf-8 (even those that
>>> were not utf-8 when they were
>>> open)?
>>
>> Yes, edit `file-coding-system-alist'. But I'd leave some of the
>> exceptions (e.g. ".elc") in there.
>>
>>
>> regards,
>> Nikolaj Schumacher
>>
>>
>>
>
>I just added this to my .emacs:
>
>(prefer-coding-system 'utf-8)
>(modify-coding-system-alist 'file ".*" 'utf-8)
>
>Is it the proper way of doing that? (Sorry,
>beginner question
)
I get this same question, "what coding system?", sometimes, like
sometimes when grabbing some text from a wikipedia entry.
Not knowing anything about these coding systems, their history,
etc, I haven't a clue as to what to answer!
For someone like me often grabbing ascii[-like?] files from eg
wikipedia, would a choice of utf-8 be reasonable?
Again, it's for what seems and looks to me (on screen) like
plain old ascii.
And what would you have me stick into my .emacs, then?
THANK YOU!
David
next prev parent reply other threads:[~2008-09-14 21:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 2:38 Using utf-8 and only utf-8 Maurício
2008-08-26 6:42 ` Peter Dyballa
2008-08-26 10:57 ` Nikolaj Schumacher
2008-08-27 1:48 ` Maurício
[not found] ` <mailman.17642.1219801733.18990.help-gnu-emacs@gnu.org>
2008-09-14 21:12 ` David Combs [this message]
2008-09-15 13:28 ` Determination of character encoding (was: Re: Using utf-8 and only utf-8) ken
2008-09-15 16:17 ` Using utf-8 and only utf-8 Nikolaj Schumacher
[not found] ` <mailman.19278.1221485367.18990.help-gnu-emacs@gnu.org>
2008-09-22 20:02 ` Determination of character encoding (was: Re: Using utf-8 and only utf-8) David Combs
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='gajuom$6rr$1@reader1.panix.com' \
--to=dkcombs@panix.com \
--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.