Encode a full DXF document string (as produced by
DxfWriter.toString) to windows-1252 bytes — the encoding its own
$DWGCODEPAGE ANSI_1252 header variable declares — with characters
outside that code page spelled as \U+XXXX (see the module comment).
Iterates by code point (not UTF-16 code unit) so a surrogate pair is
treated as the one astral character it represents.
Encode a full DXF document string (as produced by DxfWriter.toString) to windows-1252 bytes — the encoding its own
$DWGCODEPAGE ANSI_1252header variable declares — with characters outside that code page spelled as\U+XXXX(see the module comment). Iterates by code point (not UTF-16 code unit) so a surrogate pair is treated as the one astral character it represents.