From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: garbage chars when pasting French chars into emacs
Date: Fri, 03 Feb 2012 09:31:10 +0200 [thread overview]
Message-ID: <83ipjofk5d.fsf@gnu.org> (raw)
In-Reply-To: <4F2AEB65.2080404@mousecar.com>
> Date: Thu, 02 Feb 2012 15:00:37 -0500
> From: ken <gebser@mousecar.com>
>
> >> Following your advice, I ran
> >>
> >> (set-selection-coding-system 'ctext-with-extensions)
> >>
> >> and then did the same copy-and-paste again. This got more of the
> >> characters correct, but not all of them.
>
> Looking again, I see my eyes must have been malfunctioning for the text
> pasted into emacs is rendered correctly. However, when I try to save
> the text, I'm presented with the minibuffer message "Select coding
> system (default iso-2022-jp-2): ". At the same time a second buffer
> opens under the first giving the options for coding system:
>
> ===================================================================
> These default coding systems were tried:
> mule-utf-8-unix iso-latin-1
> However, none of them safely encodes the target text.
>
> Select one of the following safe coding systems:
> iso-2022-jp-2 x-ctext iso-2022-7bit raw-text emacs-mule no-conversion
> ctext-no-compositions iso-2022-8bit-ss2 iso-2022-7bit-lock
> iso-2022-7bit-ss2 tibetan-iso-8bit-with-esc thai-tis620-with-esc
> lao-with-esc korean-iso-8bit-with-esc hebrew-iso-8bit-with-esc
> greek-iso-8bit-with-esc iso-latin-9-with-esc iso-latin-8-with-esc
> iso-latin-5-with-esc iso-latin-4-with-esc iso-latin-3-with-esc
> iso-latin-2-with-esc iso-latin-1-with-esc
> in-is13194-devanagari-with-esc cyrillic-iso-8bit-with-esc
> chinese-iso-8bit-with-esc japanese-iso-8bit-with-esc
> ===================================================================
>
> Entering "utf-8" into the minibuffer, of course, doesn't work. Frankly,
> I'd like to save into utf-8
You can't, not with Emacs 21. In that version, the same character in
different character sets was treated as 2 different characters. Also,
the mule-utf-8 character set didn't include the Latin-1 characters.
The only suggestion I have is to try iso-latin-1-with-esc (you will
see above that this is one of the possibilities suggested by Emacs),
it should at least produce a Latin-1 encoded file, which will be
easier on you later.
You really need to upgrade your Emacs, if you want to use UTF-8.
next prev parent reply other threads:[~2012-02-03 7:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 20:41 garbage chars when pasting French chars into emacs ken
2012-02-01 21:23 ` Eli Zaretskii
2012-02-02 2:39 ` ken
2012-02-02 3:55 ` Eli Zaretskii
2012-02-02 20:00 ` ken
2012-02-03 7:31 ` Eli Zaretskii [this message]
2012-02-06 18:01 ` different distro [was: Re: garbage chars when pasting French chars into emacs] ken
2012-02-06 20:15 ` Peter Dyballa
2012-02-01 21:29 ` garbage chars when pasting French chars into emacs Philipp Haselwarter
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=83ipjofk5d.fsf@gnu.org \
--to=eliz@gnu.org \
--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).