emacs-devel
[Top][All Lists]
Advanced

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

Re: converting between charsets


From: Stefan Monnier
Subject: Re: converting between charsets
Date: Mon, 15 May 2006 10:11:48 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

SM> Than show us how and when you call encode-coding-region.
SM> I.e. repeat the above but in elisp rather than english.
SM> Assume you're explining it to a complete idiot.
SM> 
SM> Please take seriously the bit about the idiot.
SM> 
>>> For example.
>>> 1. (find-file "/tmp/test.txt")
SM> 
SM> How did you start Emacs?

> For example 'emacs -q', even if do not suppress reading my ~/.emacs
> the result is the same.

Under X or under a tty?

>>> 2. enter some text in Russian (after I toggled xkb layout)
>>> 3. M-: (encode-coding-region (point-min) (point-max) 'koi8-r) and
>>> Russian characters become '?'.
SM> What did you expect instead?
> I expect that cyrrillic characters will be encoded to their koi8-r values.

If you put the cursor on the russian chars before calling
encode-coding-region and hit C-u C-x = what does it say?

If you put the cursor on the `?' that replaced that char and hit C-u C-x =
what does it say?


        Stefan




reply via email to

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