From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: how to change file coding system Date: Fri, 12 Aug 2005 17:52:33 +0200 Organization: Informatimago Message-ID: <873bpfi24e.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1123863020 13159 80.91.229.2 (12 Aug 2005 16:10:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 16:10:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 12 18:10:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3c58-0003vE-IB for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 18:08:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3c84-0007mZ-0n for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 12:11:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!proxad.net!proxad.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:FrMeDWMEMFGKPqQSBJw7mlJIHdY= Original-Lines: 972 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=H7b4J6W8\I2;[Lk]7cIPn9EW@M2bjd]f5bBd4DjF1d]1 Original-Xref: shelby.stanford.edu gnu.emacs.help:133161 Original-To: help-gnu-emacs@gnu.org 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:28688 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28688 Martin Monsorno writes: > � > > doesn't seem like an 'ü' to me Neither to me. The three bytes I received were ef, bf and bd, displayed as: "LATIN_SMALL_LETTER_I_WITH_DIAERESIS" "INVERTED_QUESTION_MARK" "VULGAR_FRACTION_ONE_HALF" in the iso-8859-1 encoding of the message. If you want to send us unicode character you'd better use utf-8! $ od -t x1 /tmp/a 0000000 ef bf bd 0a 0000004 $ cat /tmp/a # I've got a utf-8 terminal � and this is a unicode "REPLACEMENT_CHARACTER". > the umlauts are not de-/encoded correctly, don't know whom to blame > (however, most of the times it's eclipse). and i also don't know how > to handle this problem. If you were expecting a ü, then it's not utf-8. You have to know what encoding it is exactly. What's sure, is that it's not a ü in any known encoding: $ for encoding in $(iconv -l|sed -e '1,/^$/d' -e /:/d -e s-//--) ; do printf "%24s " "$encoding" ; ch=$( iconv -f $encoding -t utf-8