[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File Encoding Issue on Windows
From: |
Phoenix Gris |
Subject: |
Re: File Encoding Issue on Windows |
Date: |
Wed, 13 Mar 2013 05:33:01 -0700 (PDT) |
User-agent: |
G2/1.0 |
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!
- Re: File Encoding Issue on Windows, (continued)
- Re: File Encoding Issue on Windows, Peter Dyballa, 2013/03/13
- Re: File Encoding Issue on Windows, Tech Stuff, 2013/03/13
- Re: File Encoding Issue on Windows, Peter Dyballa, 2013/03/13
- Re: File Encoding Issue on Windows, Axel E. Retif, 2013/03/13
- Re: File Encoding Issue on Windows, Tech Stuff, 2013/03/13
- Re: File Encoding Issue on Windows, Tech Stuff, 2013/03/13
- Re: File Encoding Issue on Windows, Axel E. Retif, 2013/03/13
- Re: File Encoding Issue on Windows, Tech Stuff, 2013/03/14
- Re: File Encoding Issue on Windows, Axel E. Retif, 2013/03/14
- Re: File Encoding Issue on Windows, Peter Dyballa, 2013/03/12
Re: File Encoding Issue on Windows,
Phoenix Gris <=