From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: File Encoding Issue on Windows Date: Wed, 13 Mar 2013 16:33:11 -0400 Message-ID: References: <78255fce-3fce-4fa3-b594-d8a639493675@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363206835 12047 80.91.229.3 (13 Mar 2013 20:33:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 20:33:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 21:34:17 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 1UFsNM-0005FS-Dl for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 21:34:16 +0100 Original-Received: from localhost ([::1]:33251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFsMz-0003B6-V3 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 16:33:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFsMg-000362-Qw for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 16:33:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFsMe-0004f3-Tx for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 16:33:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFsMe-0004eO-N8 for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 16:33:32 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UFsMy-0004q7-1c for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 21:33:52 +0100 Original-Received: from 206-248-162-253.dsl.teksavvy.com ([206.248.162.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 21:33:52 +0100 Original-Received: from monnier by 206-248-162-253.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 21:33:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 206-248-162-253.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:Rftduhii9sQ2+kimULrSAeGi/CE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:89512 Archived-At: > On one of the machine I have this in my .emacs file, but it doesn't do > the trick!!! > (setq buffer-file-coding-system 'utf-8-unix) > (setq file-name-coding-system 'utf-8-unix) > (setq default-keyboard-coding-system 'utf-8-unix) > (setq default-process-coding-system '(utf-8-unix . utf-8-unix)) > (setq default-sendmail-coding-system 'utf-8-unix) > (setq default-terminal-coding-system 'utf-8-unix) > (setq buffer-file-coding-system 'utf-8-unix) I recommend you throw away most/all of those settings, then when a file is mis-recognized, tell us about it via M-x report-emacs-bug (which will give us additional info about your locale settings and things like that), ideally attaching the file to the bug-report (so it's better if you can reproduce the problem on a small file with no private information). Nowadays, Emacs should recognize a utf-8 file in most circumstances, Stefan