From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: switch between utf-8 and latin-1 (ARGH!!)
Date: Sun, 19 Jul 2009 01:54:24 +0200 [thread overview]
Message-ID: <87r5wdcztb.fsf@galatea.local> (raw)
In-Reply-To: Lyr8m.2496$vm5.1802@tornado.fastwebnet.it
?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__
next prev parent reply other threads:[~2009-07-18 23:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-18 17:44 switch between utf-8 and latin-1 ?manu*
2009-07-18 17:59 ` Pascal J. Bourguignon
2009-07-18 19:06 ` switch between utf-8 and latin-1 (ARGH!!) ?manu*
2009-07-18 19:39 ` Anselm Helbig
2009-07-18 21:57 ` ?manu*
2009-07-18 23:54 ` Pascal J. Bourguignon [this message]
2009-07-19 6:32 ` ?manu*
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5wdcztb.fsf@galatea.local \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).