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

Re: Binary content and allowed characters in XML


xml allowed characters
On Thursday 20 December 2001 04:34 am, Nicolas LEHUEN wrote:
> What defines the set of allowed characters in XML content ? Is it technical
> reasons, or readability reasons ?

Technical.

> The problem is, readability is a subjective concept. There's no character
> encoding that both contains all required characters for a given language
> and that are readable on all platform. If you define readability by "I can
> read it with vi under my Unix variant", you'll have hard times trying to
> find such an encoding.
. . .
> XML answers this need, as long as labels and values are 'text', whatever it
> means for the W3C (once again, UTF-8 string is no longer text for me as
> soon as I've got French accentuated characters in my strings). But for
> binary data, I have to use tricks. I don't want to.

One article that might be interesting is the "What is text really?" article.

However, something that separates text from binary data is that text 
is ultimately defined in terms of characters. The encoding of characters, and 
the display of characters, are logically distinct from the *concept* of the 
characters used. 

At this abstract level, it is questionable whether many of the control 
characters, and NUL, are actually characters at all. As Rick pointed out, 
most of them get special treatment in Unicode.

From that abstract technical level, we can also jump down to the lowest 
level, and as Daniel noted, allowing things like NUL will cause all kinds of 
problems. Rick also correctly pointed out that the control sequences can 
cause issues with other programs.


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.