[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switch between utf-8 and latin-1 (ARGH!!)
From: |
Pascal J. Bourguignon |
Subject: |
Re: switch between utf-8 and latin-1 (ARGH!!) |
Date: |
Sun, 19 Jul 2009 01:54:24 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
?manu* <paolNOini@math.SPAMunifi.it> writes:
> Anselm Helbig ha scritto:
>> You don't need another editor to do that. Just try to understand what
>> emacs is doing here: when you added the line about the coding system
>> emacs understood that you want the contents of the buffer saved with
>> this coding system. Emacs can not know that the characters on screen
>> are not what you want! So you first have to get to the point where
>> Emacs has the correct notion about the coding system. Pascal already
>> pointed you to `set-buffer-file-coding-system',
>
> This was not useful because it does not change the meaning of the
> caracters in the buffer. It only changes the encoding of the
> characters when saving to file.
Normally, you would have checked the user manual, and on the page
about set-buffer-file-coding-system, you would have seen the
description of universal-coding-system-argument...
(info "(emacs)Text Coding")
File: emacs, Node: Text Coding
27.11 Specifying a Coding System for File Text
==============================================
...
>> another way is to use
>> `universal-coding-system-argument' (C-x RET c) immediately before
>> opening a file.
>
> ...yes this was the right command to use...
>
> thanks,
> E.
--
__Pascal Bourguignon__