Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: What are you expecting XML to be in?

by merlyn (Sage)
on Jun 03, 2001 at 21:56 UTC ( #85342=note: print w/replies, xml ) Need Help??


in reply to What are you expecting XML to be in?
in thread Converting character encodings

An XML compliant parser must support Unicode, but a particular Unicode file can be represented in ISO-8859-1.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: What are you expecting XML to be in?

Replies are listed 'Best First'.
Re: Re: What are you expecting XML to be in?
by John M. Dlugosz (Monsignor) on Jun 03, 2001 at 22:44 UTC
    That's a proper subset of UTF-8, so not really necessary. Can a particular XML file be represented in, say, 8859-6 or JIS-X, and still be standard? I don't like this because it means that a file can't be read unless the parser knows that character set.
      7-bit ISO-8859-1 (also called "ASCII" {grin}) is a proper subset of UTF-8, but not 8-bit ISO-8859-1. So yes, you'd need to declare the file as ISO-8859-1 if you wanted to have any "second half" characters, but otherwise you can let it default to UTF-8.

      -- Randal L. Schwartz, Perl hacker

        Oh yea, that's right. 8859-1 is a subset of Unicode character encoding, but not UTF-8. I mixed them up.

        So one can find existing xml files with various encodings? Does that mean a parser needs a conformance statement as to what encodings it can understand?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://85342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-01-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?