all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harald Maier <harald@maierh.de>
Subject: Re: emacs, umlauts,  x-windows text mark and paste
Date: Tue, 16 Dec 2003 10:40:41 +0100	[thread overview]
Message-ID: <m3smjl14o6.fsf@ate.maierh> (raw)
In-Reply-To: brmg6k$m9k$1@f1node01.rhrz.uni-bonn.de

josh buhl <uzs33d@uni-bonn.de> writes:

> Hi,
>
> When I mark text in some other application that contains non-ascii
> characters, e.g. in mozilla from a german webpage containing ö ä ü ß,
> and paste it into an emacs buffer, than all the special characters get
> shown as control sequences. Here's an example:
>
> I mark this text in mozilla:
>
> Soße wird in einer extra Soßenschüssel...
>
> Paste it into my Emacs buffer and get this:
>
> So\x{00DF}e wird in einer extra So\x{00DF}ensch\x{00FC}ssel...
>
> Questions:
>
> 1. how can I get this to work properly?

Works fine for me out of the box. In mozilla the character coding is
Western ISO8859-1 or ISO8859-15.

>
> 2. which command could I execute in emacs to get it to switch the
> encoding of the current buffer, or whatever, so that the garbled
> characters magically get converted to what they're supposed to be?

C-x RET f (set-buffer-file-coding-system)

>
> 3. why is this like this?
>
> I've struggled with this problem _for years_ and never have found an
> easy solution. I'm running emacs 21.3.1 on debian testing under gnome
> 2.4 with english as the default language environment. I do know that
> if I log out, and log in setting the session language to german, then
> I can cut an paste german text into an emacs buffer with no
> problem. However, it's not enough to set the LANG variable: if I open
> a terminal, set LANG=german or de, and start emacs, it still doesn't
> work.

I am using as LANG environment de_DE or de_DE@euro. But it also works
fine with "C". As far as I know "german" is not a valid entry. In
emacs you can see the LANG value as follows:

M-: (getenv "LANG")

Harald

  parent reply	other threads:[~2003-12-16  9:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16  8:36 emacs, umlauts, x-windows text mark and paste josh buhl
2003-12-16  9:11 ` Sergei Pokrovsky
2003-12-16  9:40 ` Harald Maier [this message]
2003-12-16 10:11 ` erasurehead
2003-12-16 10:33   ` Harald Maier
2003-12-16 10:54     ` josh buhl
2003-12-16 11:16       ` josh buhl
2003-12-17  6:07         ` Eli Zaretskii
     [not found]         ` <mailman.175.1071644836.868.help-gnu-emacs@gnu.org>
2003-12-17  8:17           ` josh buhl
2003-12-17  8:19           ` josh buhl
2003-12-17  9:25             ` Eli Zaretskii
     [not found]             ` <mailman.181.1071656744.868.help-gnu-emacs@gnu.org>
2003-12-17  9:57               ` Sergei Pokrovsky
2003-12-17 10:51               ` Harald Maier
2003-12-17 13:56                 ` josh buhl
2003-12-17 11:43               ` Edi Weitz
2003-12-17 18:20                 ` Eli Zaretskii
2003-12-17 13:54               ` erasurehead
2003-12-17 14:00                 ` josh buhl
2003-12-17 18:24                 ` Eli Zaretskii
     [not found]                 ` <mailman.210.1071689295.868.help-gnu-emacs@gnu.org>
2003-12-18  8:53                   ` josh buhl
2003-12-16 10:57   ` Sergei Pokrovsky
2003-12-16 10:12 ` josh buhl
2003-12-18  9:54 ` josh buhl
2003-12-18  9:56   ` josh buhl

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=m3smjl14o6.fsf@ate.maierh \
    --to=harald@maierh.de \
    /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.