From: sirciny <sirciny@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Encoding
Date: Mon, 10 Jun 2013 15:47:44 -0700 (PDT) [thread overview]
Message-ID: <1370904464694-288388.post@n5.nabble.com> (raw)
I recently changed the default Ubuntu font in my ~/.emacs file to DejaVu Sans
Mono-10 using the following:
(set-face-attribute 'default nil :font "DejaVu Sans Mono-10")
Now, when I edit certain .txt files, I get the following error when Emacs
autosaves:
These default coding systems were tried to encode text
in the buffer ` *Format Temp 0*':
(emacs-mule-unix (216366 . 157))
However, each of them encountered characters it couldn't encode:
emacs-mule-unix cannot encode these:
Click on a character (or switch to this window by `C-x o'
and select the characters by RET) to jump to the place it appears,
where `C-u C-x =' will give information about it.
Select one of the safe coding systems listed below,
or cancel the writing with C-g and edit the buffer
to remove or modify the problematic characters,
or specify any other coding system (and risk losing
the problematic characters).
utf-16le-with-signature utf-8 gb18030 utf-7 utf-16
utf-16be-with-signature utf-16be utf-16le utf-8-auto
utf-8-with-signature utf-7-imap utf-8-emacs
---------------------------------------
I have tried setting my default (en?)coding system to utf-8 via the
following:
(set-language-environment 'utf-8)
(setq locale-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
--------------------------------------
None of the above has worked when placed in ~/.emacs and after restarting
Emacs. How can I get rid of this error and keep my new font (and avoid the
problem if I change my font attributes in the future)?
--
View this message in context: http://emacs.1067599.n5.nabble.com/Encoding-tp288388.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2013-06-10 22:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 22:47 sirciny [this message]
2013-06-11 9:22 ` Encoding Peter Dyballa
2013-06-12 13:11 ` Encoding sirciny
-- strict thread matches above, loose matches on Subject: below --
2011-03-13 1:01 encoding rinefez
2011-03-13 1:07 ` encoding Pascal J. Bourguignon
2011-03-13 18:59 ` encoding rinefez
2011-03-15 0:35 ` encoding rinefez
2011-03-15 0:51 ` encoding Pascal J. Bourguignon
2011-03-15 1:21 ` encoding rinefez
2009-01-08 0:35 encoding Alan
2009-01-08 4:27 ` encoding Eli Zaretskii
2004-06-21 7:41 Encoding Rob Kramer
2004-06-21 18:43 ` Encoding Kevin Rodgers
2004-06-30 16:51 ` Encoding Kai Grossjohann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370904464694-288388.post@n5.nabble.com \
--to=sirciny@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).