help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems displaying german "umlaute"


From: Rainer Stengele
Subject: Re: problems displaying german "umlaute"
Date: Fri, 03 Jul 2009 20:07:29 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]