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

Re: encoding of text files

Subject: Re: encoding of text files
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 14 Nov 2002 04:05:53 -0700 (MST)
encoding from general text file
Joerg Heinicke wrote:
> I have a problem with generated java/text files and their encoding.

Then this problem is not appropriate for xsl-list.

> It should be possible to have text files in UTF-8, shouldn't it??

Of course. Any file is just bytes. Those bytes can represent text
according to a particular encoding, or anything else.

> What can then be the problem?
> How are text files marked as UTF-8?

Ordinary text files have no way of indicating their encoding. XML document
entities and parsed general entities have encoding declarations for this
purpose, and XML parsers also accept external declarations of encoding, such
as what might be obtained from a transport protocol (HTTP response
Content-Type header, for example) by whatever is feeding the entity's bytes to
the parser.

The sender and receiver of the bytes that constitute a file intended for
processing as textual data must be in agreement on what encoding was used to
produce those bytes. How you do that in your non-XSLT related application is a
matter you should take up in a more apporpriate forum.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.