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

RE: [ Revision #2 ] 15 elementary truths about XML

  • From: Liam R E Quin <liam@w3.org>
  • To: dlee@calldei.com
  • Date: Thu, 03 Nov 2011 10:03:47 -0700

RE:  [ Revision #2 ] 15 elementary truths about XML
On Thu, 2011-11-03 at 09:01 -0700, David Lee wrote:
> Concrete case:  Java "String" objects do not use "bytes" to encode strings.
> They use "16 bit ints". 
[...]
> Saying something is encoded in "Bytes" to me emplies
> a encoding format such as UTF8 or some such which translates codepoints to a
> stream of bytes.
> Java strings store the codepoints directly, no encoding or decoding to a
> stream of bytes is done unless you write it to a file or byte array.

Since Unicode is a 32-bit character set, Java is not storing the
codepoints directly in all cases, but only the ones that fit; to be fair
those are by far the most common in most environments in which Unicode
is used today.

We are straying, I think, a little far, but, an understanding of
character representation is important to anyone working with text.

Best,

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.