std.xml2 (collecting features)

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Mon May 4 11:55:28 PDT 2015


Am Sun, 03 May 2015 14:00:11 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 5/3/2015 10:39 AM, Robert burner Schadek wrote:
> > - CTS for encoding (ubyte(ASCII), char(utf8), ... )
> 
> Encoding schemes should be handled by adapter algorithms, not in the XML parser 
> itself, which should only handle UTF8.

Unlike JSON, XML actually declares the encoding in the prolog,
e.g.: <?xml version="1.0" encoding="Windows-1252"?>

-- 
Marco



More information about the Digitalmars-d mailing list