all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phoenix Gris <phoenixgris@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>,
	Tech Stuff <techstuff1971@yahoo.com>
Subject: Re: File Encoding Issue on Windows
Date: Wed, 13 Mar 2013 05:33:01 -0700 (PDT)	[thread overview]
Message-ID: <78255fce-3fce-4fa3-b594-d8a639493675@googlegroups.com> (raw)
In-Reply-To: <mailman.21917.1363080184.855.help-gnu-emacs@gnu.org>

Hello,

I am using Emacs, 23.3 on three different machines: Ms-Windows XP, RedHat Linux sever and Xunbuntu PC, I have the same problems on the three machines.  It is not all the time, but most of the time, and this is not between different software, it is Emacs itself that doesn't display in the right encoding.  Most of my writings are in French with all its accents.  Most of the time I have to do «C-x RET f» to select the encoding to save the file, then «C-x RET r» to revert it, I find this veryyyyyyyyyyy tedius!!!

Similarly, setting file local variables for each file is very tedius when you navigate through lors of files!!!

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)

The process-coding-system is because I interact with statistical softwares through Emacs, some data is characters and it as accents!!!

Is there something that could be put in .emacs files so the encoding is utf-8 for everything, NO MATTER WHAT???

Thanks,

Gérald

Le lundi 11 mars 2013 23:08:46 UTC-4, Tech Stuff a écrit :
> Hi,
> 
> I use Emacs on Windows to write Spanish text.  In order to enter the special characters I installed the US international keyboard layout.  I never changed any variables in Emacs (in fact, I don't think that I've ever even touched the .emacs file on this machine) and things have just always worked fine.  Last week however, when I opened one of my recent files in notepad to print it out, there were some extra characters, one before every extended character (ie, é) in the file.  I googled around and I made some changes (unfortunately, I don't recall exactly what they were, but I think that I explictly saved the files in UTF-8) and I thought that all was good.  Not so much though.  Today I opened one of the files in Emacs and again the special characters are incorrect, though this time in new
>  and interesting ways.  Here's an example of what I see in the buffer:
> 
>  Â¿En qué fecha llegaron
> 
> when I should see:
> 
> ¿En qué fecha llegaron
> 
> (hopefully these things post correctly to the mail lists)
> 
> 
> Obviously this has something to do with encoding (though I can't imagine why it started all of the sudden) but I'm afraid that I'm out of my depth.  I only want to be able to write text in emacs and save it such that it can subsequently be opened both in ms notepad and emacs again and have all of the characters render correctly.  Can anyone point me in the right direction?  I'd be happy to post any information you might need to diagnose this.  Here is the version information:
> 
> GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE
> 
> Thanks!



       reply	other threads:[~2013-03-13 12:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.21917.1363080184.855.help-gnu-emacs@gnu.org>
2013-03-13 12:33 ` Phoenix Gris [this message]
2013-03-13 14:48   ` File Encoding Issue on Windows Peter Dyballa
2013-03-13 15:29   ` Filipp Gunbin
2013-03-13 17:16   ` Eli Zaretskii
2013-03-13 20:33   ` Stefan Monnier
2013-03-12  3:08 Tech Stuff
2013-03-12 10:50 ` Peter Dyballa
2013-03-12 14:57   ` Tech Stuff
2013-03-12 16:32     ` W. Greenhouse
2013-03-13 17:44       ` Tech Stuff
2013-03-13 20:37         ` Peter Dyballa
2013-03-13 21:11           ` Tech Stuff
2013-03-13 22:16             ` Peter Dyballa
2013-03-13 23:26               ` Tech Stuff
2013-03-13 23:41                 ` Peter Dyballa
2013-03-13 23:48                   ` Tech Stuff
2013-03-13 23:58                     ` Peter Dyballa
2013-03-14  0:38                     ` Axel E. Retif
2013-03-14  2:24                       ` Tech Stuff
2013-03-14  2:35                         ` Tech Stuff
2013-03-14  2:59                           ` Axel E. Retif
2013-03-14  4:23                             ` Tech Stuff
2013-03-14  6:07                               ` Axel E. Retif
2013-03-12 17:23     ` Peter Dyballa

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=78255fce-3fce-4fa3-b594-d8a639493675@googlegroups.com \
    --to=phoenixgris@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=techstuff1971@yahoo.com \
    /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.