3 ms·
I believe XML and HTML both require Unicode data to be in NFC.
by mgaunard 3y ago
I believe XML and HTML both require Unicode data to be in NFC.
- fanf2 3y agoI don’t think so? https://www.w3.org/TR/2008/REC-xml-20081126/#charsets https://www.w3.org/TR/2008/REC-xml-20081126/#charsets XML 1.1 says documents should be normalized but they are still well-formed even if not normalized https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-normalization-checking https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-normaliza... But you should not use XML 1.1 https://www.ibiblio.org/xml/books/effectivexml/chapters/03.html https://www.ibiblio.org/xml/books/effectivexml/chapters/03.h...
- layer8 3y agoYou believe incorrectly. Not even Canonical XML requires normalization: https://www.w3.org/TR/xml-c14n/#NoCharModelNorm https://www.w3.org/TR/xml-c14n/#NoCharModelNorm
- mbrubeck 3y agoHTML does not require NFC (or any other specific normalization form): https://www.w3.org/International/questions/qa-html-css-normalization https://www.w3.org/International/questions/qa-html-css-norma... Neither does XML (though it XML 1.0 recommends that element names SHOULD be in NFC and XML 1.1 recommends that documents SHOULD be fully normalized): https://www.w3.org/TR/2008/REC-xml-20081126/#sec-suggested-names https://www.w3.org/TR/2008/REC-xml-20081126/#sec-suggested-n... https://www.w3.org/TR/xml11/#sec-normalization-checking https://www.w3.org/TR/xml11/#sec-normalization-checking