From: Rainer Stengele <rainer.stengele@online.de>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: problems displaying german "umlaute"
Date: Fri, 03 Jul 2009 20:07:29 +0200 [thread overview]
Message-ID: <4A4E48E1.6040806@online.de> (raw)
In-Reply-To: <4A4E483E.201@online.de>
Rainer Stengele schrieb:
> Rainer Stengele schrieb:
>> Hi all,
>>
>> sorry this is surely a standard problem but I cannot find a fast
>> solution.
>>
>> I am using textfiles (actually org-mode text) both on windows emacs 23
>> (emacsw32-20090226) and under different linux variants (kubuntu,
>> sidux) some running emacs 22 and some emacs 23.
>>
>> The problem is that the "umlauts" shown in the windows emacs without
>> problems are shown as code under linux.
>>
>> I am using the exact same configuration (versioned by subversion),
>> .emacs etc.
>>
>> So under windows I see:
>>
>> Hüpfreduzierspiel rekursiv lösen
>> under linux I see:
>> H\303\274pfreduzierspiel rekursiv l\366sen
>> What can I do?
>>
>> Thank you for any hint!
>>
>>
>> Rainer
>>
>>
>>
>
> This is still coming up from time to time.
> I could not find anything wrong in the "codings", as far as I understand
> anything of it.
> In order to proceed I wanted to write a function to replace all the
> wrong characters.
> I have this her and it does not work, although doing a "replace-string"
> is working perefctly in the buffer.
> "\374" is of course a character, not a string.
>
>
> Can anybody give me a hint please!
>
>
> (defun replace-misthaufen ()
> "replaces im gesamten buffer:
> \374 => ü
> \337 => ß
> \344 => ä
> \366 => ö"
> (interactive
> (beginning-of-buffer)
> (while (search-forward " " nil t)
> (replace-match "ü" nil t))
> ; (beginning-of-buffer)
> (while (search-forward " " nil t)
> (replace-match "ß" nil t))
> ; (beginning-of-buffer)
> (while (search-forward " " nil t)
> (replace-match "ä" nil t))
> ; (beginning-of-buffer)
> (while (search-forward " " nil t)
> (replace-match "ö" nil t))
> ))
>
>
> Rainer
>
>
>
>
sorry this is of course
(defun replace-misthaufen ()
"ersetzt im gesamten buffer:
\374 => ü
\337 => ß
\344 => ä
\366 => ö"
(interactive
(beginning-of-buffer)
(while (search-forward " " nil t)
(replace-match "ü" nil t))
(beginning-of-buffer)
(while (search-forward " " nil t)
(replace-match "ß" nil t))
(beginning-of-buffer)
(while (search-forward " " nil t)
(replace-match "ä" nil t))
(beginning-of-buffer)
(while (search-forward " " nil t)
(replace-match "ö" nil t))
))
which does not work either.
Rainer
next prev parent reply other threads:[~2009-07-03 18:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 21:05 problems displaying german "umlaute" Rainer Stengele
2009-05-20 5:15 ` tomas
2009-05-20 5:38 ` Andreas Röhler
2009-07-03 18:04 ` Rainer Stengele
2009-07-03 18:07 ` Rainer Stengele [this message]
[not found] ` <mailman.1761.1246644611.2239.help-gnu-emacs@gnu.org>
2009-07-03 18:39 ` TomSW
2009-07-03 19:23 ` Rainer Stengele
2009-07-03 19:34 ` Rainer Stengele
[not found] ` <mailman.1771.1246649671.2239.help-gnu-emacs@gnu.org>
2009-07-03 19:55 ` TomSW
2009-07-04 21:14 ` Rainer Stengele
[not found] ` <mailman.1828.1246742043.2239.help-gnu-emacs@gnu.org>
2009-07-04 22:42 ` TomSW
2009-07-08 17:11 ` Rainer Stengele
2009-07-03 18:28 ` Rainer Stengele
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=4A4E48E1.6040806@online.de \
--to=rainer.stengele@online.de \
--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.
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.