From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sirciny Newsgroups: gmane.emacs.help Subject: Encoding Date: Mon, 10 Jun 2013 15:47:44 -0700 (PDT) Message-ID: <1370904464694-288388.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370905358 9666 80.91.229.3 (10 Jun 2013 23:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 23:02:38 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 01:02:35 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmB6h-0004Lm-2Y for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 01:02:35 +0200 Original-Received: from localhost ([::1]:48739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmB6g-0002oF-M1 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2013 19:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAsO-0008HQ-6b for Help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:47:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmAsL-0001rl-Et for Help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:47:48 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:49340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAsL-0001rZ-AE for Help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:47:45 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UmAsK-0007bW-NK for Help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 15:47:44 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 X-Mailman-Approved-At: Mon, 10 Jun 2013 19:02:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91451 Archived-At: I recently changed the default Ubuntu font in my ~/.emacs file to DejaVu Sa= ns 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: =C2=9D 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 =3D' 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-t= p288388.html Sent from the Emacs - Help mailing list archive at Nabble.com.