[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Mix encodings in a document?

  • From: Jerome McDonough <jmcdonou@l...>
  • To: Deke Smith <deke@t...>, <xml-dev@i...>
  • Date: Tue, 22 Sep 1998 09:34:07 -0700

utf 7 utf 8
At 09:15 AM 9/22/98 -0500, Deke Smith wrote:
>Gavin Thomas Nicol, gtn@e... said on 9/21/98 2:42 PM:
>
>>The two required encodings are UTF-16 and UTF-8. You can use any other
>>encoding you like, so long as the system you are working with supports
>>it.
>>
>>Remember: byte != character code != character != glyph
>
>It may be slightly off topic, but do you mind expanding on that last 
>line? I would be interested.
>

Glyphs represent the various shapes that a character may have when
rendered or displayed; a single character may have multiple glyphs,
and it's possible for a single glyph to represent several different
characters.  Arabic, as an example, has many different glyphs for
representing a single character.  So glyphs are not the same as
characters.

Unicode defines characters as "the smallest components of written
language that have semantic value," while character codes represent
characters as "values that reside only in a memory representation, as
strings in memory, or on disk."  Different character encoding standards will
have different character codes for the same character, and even within
Unicode, the same character code may have different encodings (UTF-7, 
UTF-8, etc.).  So, character codes are not the same as characters.

And Unicode represents a character as a single 16 bit word, so bytes
do not represent characters (even in UTF-8, where a character encoding
may be one to four bytes).
  
>IANA character encoding spec I found at 
>ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets do not 
>explicitly name UTF-16, but does name several flavors of Unicode(?):
>
>ISO-10646-UCS-2
>ISO-10646-UCS-4
>ISO-10646-UTF-1
>ISO-10646-Unicode-Latin1
>ISO-10646-J-1
>UNICODE-1-1
>UNICODE-1-1-UTF-7
>UTF-7
>UTF-8
>
>Which is an alias for UTF-16?
>

ISO-10646-UCS-2 (the 2-octet Basic Multilingual Plane) is the
same as Unicode (which is a 16-bit chararacter encoding), so
that would be your "UTF-16." (I don't think that, technically,
the 16-bit encoding gets referred to as a UCS Transmission Format).



Jerome McDonough -- jmcdonou@l...  |  (......)
Library Systems Office, 386 Doe, U.C. Berkeley     |  \ *  * /
Berkeley, CA 94720-6000    (510) 643-2058          |  \  <>  /
"Well, it looks easy enough...."                   |   \ -- /  SGNORMPF!!!
         -- From the Famous Last Words file        |    ||||

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.