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: Character sets and encodings confusion Date: Fri, 11 Jan 2008 18:34:56 +0200 Message-ID: References: <1200061589.21732.1230705713@webmail.messagingengine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1200069321 22854 80.91.229.12 (11 Jan 2008 16:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 16:35:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 17:35:44 2008 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 1JDMr7-0007GS-Dz for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 17:35:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDMqj-0008Pn-GU for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 11:35:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDMqP-0008O1-5n for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 11:34:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDMqO-0008NK-KB for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 11:34:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDMqO-0008NF-Eo for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 11:34:56 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDMqO-00056S-2h for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 11:34:56 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-42-152.inter.net.il [80.230.42.152]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id IVE25093 (AUTH halo1); Fri, 11 Jan 2008 18:32:20 +0200 (IST) In-reply-to: <1200061589.21732.1230705713@webmail.messagingengine.com> (ottomaddox@fastmail.fm) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:50659 Archived-At: > From: "Otto Maddox" > Date: Fri, 11 Jan 2008 14:26:29 +0000 > > When I type `C-u C-x =' on the character `£', I get > something like this: > > character: £ (2211, #o4243, #x8a3, U+00A3) > charset: latin-iso8859-1 > (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.) > code point: #x23 > syntax: w which means: word > category: l:Latin > buffer code: #x81 #xA3 > file code: #xA3 (encoded by coding system iso-latin-1) > display: by this font (glyph code) > -apple-monaco-medium-r-normal--13-130-72-72-m-130-iso10646-1 (#xA3) > > Why is the code point #x23? This is the code point of `£' in the latin-iso8859-1 charset. > Should it not be #xA3 in Latin Alphabet 1? No. The latin-iso8859-1 charset does not include ASCII, so it starts from what you are used to call "codepoint 160". > Also, what are the first three numbers in parenthesis on the > `character:' line? Are they code points of some charset? They are internal Emacs representation of this character, in decimal, octal, and hex. This is all explained in the Emacs manual, btw; see the node "Position Info" there (I got to that node by typing "i C-x =" in Info).