Replacing std.xml

Chris wendlec at tcd.ie
Thu Aug 29 07:07:33 PDT 2013


On Thursday, 29 August 2013 at 13:20:40 UTC, Jacob Carlborg wrote:
> On 2013-08-29 11:23, Jonathan M Davis wrote:
>
>> IIRC, everything in XML is
>> ASCII anyway, with stuff like HTML codes to indicate Unicode 
>> characters. And if
>> that's the case, avoiding unnecessary decoding is trivial when 
>> operating on
>> strings.
>
> What! I hardly believe that. That might be the case for HTML 
> but I don't think it is for XML. There are many file formats 
> that are based on XML. I don't think all those use HTML codes.
>
> This is what W3 Schools says:
>
> "XML documents can contain non ASCII characters, like Norwegian 
> æ ø å , or French ê è é.
>
> To avoid errors, specify the XML encoding, or save XML files as 
> Unicode.".

And while we're at it, what about YAML? It's a subset of JSON 
which means the new json.d module will handle it, I suppose.


More information about the Digitalmars-d mailing list