Character sets and encodings confusion
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Character sets and encodings confusion         


Author: Otto Maddox
Date: Jan 11, 2008 06:26

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? Should it not be #xA3 in Latin Alphabet 1?
Because when you click on the #x23, the character list you get shows
the code point as being #xA3, which is confusing.

Also, what are the first three numbers in parenthesis on the
`character:' line? Are they code points of some charset? (I
understand that the fourth number is a Unicode code point.)
Show full article (0.98Kb)
1 Comment
Re: Character sets and encodings confusion         


Author: Jason Rumney
Date: Jan 11, 2008 08:28

On 11 Jan, 14:26, "Otto Maddox" wrote:
> When I type `C-u C-x =' on the character `£', ...
> Why is the code point #x23? Should it not be #xA3 in Latin Alphabet 1?

The clue is in the following:
> charset: latin-iso8859-1
> (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.)

Note that the latin-iso8859-1 charset only includes the Right-Hand
part (0x80-0xff).
> Because when you click on the #x23, the character list you get shows
> the code point as being #xA3, which is confusing.

It is confusing, but the table displayed is listed as the *coded*
charset, so it has the +0x80 transformation applied.
> Also, what are the first three numbers in parenthesis on the
> `character:' line?

They are the code-point in the internal encoding (emacs-mule in the
current version) in decimal, octal and hexadecimal.
no comments

RELATED THREADS
SubjectArticles qty Group
Setting permissions in User Security tab is reverting back to previous settingmicrosoft.public.windows.server.active_directory ·