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

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

Re: searching for non ascii characters


From: Peter Dyballa
Subject: Re: searching for non ascii characters
Date: Tue, 2 Aug 2005 22:55:58 +0200


Am 02.08.2005 um 22:27 schrieb Radomir Hejl:

Hello,
when in a text mode, I usually use input method. I am able to find any character with C-s. After saving and reading the file from a disc non ascii characters cannot be found. When I do C-u C-x C-= on non ascii char before saving I see a charset latin-iso8859-2. Doing C-u C-x C-= after saving there's usually
mule-unicode-0100-24ff or latin-iso8859-1 charset.

So now I can only search with success for ascii chars. What should I trim in
emacs so that the searching be efficient?


Put a line like

        ;;; -*- mode: Text; coding: iso-8859-2; -*-

in the file's header. Could be a

        (prefer-coding-system   'iso-latin-2-unix)

is already OK. The environment variable LC_CTYPE is important: GNU Emacs sets a few things after this. In particular default-buffer-file-coding-system gets derived from this. Then there's file-coding-system-alist ...

--
Greetings

  Pete

Bake Pizza not war!





reply via email to

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