From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Charset problem Date: Thu, 13 Sep 2007 10:10:34 +0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189668768 7965 80.91.229.12 (13 Sep 2007 07:32:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 07:32:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 09:32:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVjBt-0003Hs-QQ for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 09:32:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVjBt-0003fw-HE for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 03:32:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVjBL-0003Qf-Gl for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 03:32:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVjBK-0003PF-Dc for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 03:32:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVjBJ-0003On-T2 for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 03:32:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IVjBJ-0004JP-Km for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 03:32:09 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IViqZ-0008I9-My for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 03:10:44 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.56.50]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id HUF57822 (AUTH halo1); Thu, 13 Sep 2007 10:07:47 +0300 (IDT) In-reply-to: (message from =?ISO-8859-1?Q?Christian_Schr=F6der?= on Thu, 13 Sep 2007 01:05:19 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47548 Archived-At: > From: =?ISO-8859-1?Q?Christian_Schr=F6der?= > Date: Thu, 13 Sep 2007 01:05:19 +0200 > > My problem is as follows: I log into my SuSE 10.2 linux server from my > Windows box using PuTTY. I then use GNU Emacs (in text mode) to edit > files on the linux box. You haven't supplied enough information about your systems to intelligently guess what might be your problem. One piece of info that is missing is the locales of your SuSE server and of your Windows box. > I have some old files which are encoded in ISO-8859-1. When I open these > files in Emacs the german umlauts are displayed as question marks. Go to one of those question marks and type "C-u C-x =". Then tell here what Emacs has to say about those characters. Also, what does Emacs show in the left edge of the mode line. There's a character there that says what Emacs thinks about the encoding of the file, and what encoding it uses for displaying characters on the terminal (see the user manual, node "Mode Line", for explanations about these). What do you see there when you visit the ISO-8859-1 encoded files? > I have tried to set PuTTY's translation to both UTF-8 and ISO-8859-1 Are you talking about the Window->Translation page in the PuTTY's session configuration dialog? Did you click the "Save" button on the "Session" page, after changing those settings, and then restarted the session? If not, the new settings might not be in effect. > PuTTY seems to send an ISO-8859-1 encoded character when I set the > translation to ISO-8859-1. The "translation" setting is not for sending, it's for receiving: it tells PuTTY what font to use when it gets characters with the 8th bit set. > So which way do my characters take before they get into the file? How > many translation steps are done, and by whom? Are there any Emacs > variables that must be set? Before answering these questions, we need to know the information about your locales. It's hard to help you before that, except by wild guessing.