From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Christian_Schr=F6der?= Newsgroups: gmane.emacs.help Subject: Charset problem Date: Thu, 13 Sep 2007 01:05:19 +0200 Organization: 1&1 Internet AG Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189663684 26830 80.91.229.12 (13 Sep 2007 06:08:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 06:08:04 +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 08:08:02 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 1IVhru-00038C-8x for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 08:08:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVhrt-0002H3-Du for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 02:08:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!npeer1.kpn.DE!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: p5b03b2b0.dip0.t-ipconnect.de Original-X-Trace: online.de 1189638317 6928 91.3.178.176 (12 Sep 2007 23:05:17 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Wed, 12 Sep 2007 23:05:17 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) Original-Xref: shelby.stanford.edu gnu.emacs.help:152035 X-Mailman-Approved-At: Thu, 13 Sep 2007 02:06:13 -0400 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:47546 Archived-At: Hi newgroup! I have a question regarding character encoding which might be an Emacs problem or maybe a PuTTY problem or even a general linux problem. If you think my problem is not Emacs related, please let me know. 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. 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. I have tried to set PuTTY's translation to both UTF-8 and ISO-8859-1, but this doesn't change anything. When I set PuTTY's translation to ISO-8859-1 and *type* an umlaut, I see this umlaut only if it is lower-case, but it is followed by a blank. When I save the file and look at it using a hex editor the caracter is encoded in UTF-8. When I type an upper-case umlaut I see a question mark in Emacs and the hex editor shows a 0xC3 byte. When I set PuTTY's translation to UTF-8 and type an umlaut, I see a question mark, then some graphical character and a blank. In the hex editor I see a 3-byte sequence. PuTTY seems to send an ISO-8859-1 encoded character when I set the translation to ISO-8859-1. At least it does in raw mode -- I have verified this using a network packet sniffer; unfortunately, I cannot look inside the SSH packets during the regular communication with the server. 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? Thanks for any help! Regards, Christian