From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Kotelnikov Newsgroups: gmane.emacs.devel Subject: Re: converting between charsets Date: Sun, 14 May 2006 21:53:32 +0400 Organization: Global disintoxication Message-ID: <84zmhk4hnn.fsf@vinci.loc> References: <87lktejh6f.fsf@myxomop.com> <87u082109z.fsf-monnier+emacs@gnu.org> <84veshaajc.fsf@vinci.loc> <87d5ep1a2c.fsf-monnier+emacs@gnu.org> <84hd40am8t.fsf@vinci.loc> <84ac9rah6z.fsf@vinci.loc> <87k68v82q6.fsf-monnier+emacs@gnu.org> <84bqu17on7.fsf@vinci.loc> <87wtcpqorp.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147629350 31209 80.91.229.2 (14 May 2006 17:55:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 17:55:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 19:55:49 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfKog-0001F3-QF for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 19:55:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfKog-00078u-C5 for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 13:55:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfKoU-00077E-7E for emacs-devel@gnu.org; Sun, 14 May 2006 13:55:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfKoS-000772-Ly for emacs-devel@gnu.org; Sun, 14 May 2006 13:55:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfKoS-00076z-Fx for emacs-devel@gnu.org; Sun, 14 May 2006 13:55:28 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FfKqg-0006Pw-Vp for emacs-devel@gnu.org; Sun, 14 May 2006 13:57:47 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FfKoM-0001BB-Gw for emacs-devel@gnu.org; Sun, 14 May 2006 19:55:22 +0200 Original-Received: from 81.211.124.120.adsl-spb.net.rol.ru ([81.211.124.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 May 2006 19:55:22 +0200 Original-Received: from sacha by 81.211.124.120.adsl-spb.net.rol.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 May 2006 19:55:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 81.211.124.120.adsl-spb.net.rol.ru Mail-Copies-To: never User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:jqOsCNK5lA5LhT7ZpB/NtbQ6XGg= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54452 Archived-At: >>>>> On Sat, 13 May 2006 23:20:03 -0400 >>>>> "SM" == Stefan Monnier wrote: SM> SM> Please explain why you think there is relation between those things and SM> encode-coding-region. And of course, that will involve describing where SM> how and when you call encode-coding-region. SM> >> I do not understand the question. I use encode-coding-region to encode >> a region into a charset and some characters are not encoded, but are >> substituted with question mark. SM> 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. For example. 1. (find-file "/tmp/test.txt") 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 '?'. -- Alexander Kotelnikov Saint-Petersburg, Russia