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. Iterates by code
point (not UTF-16 code unit) so a surrogate pair is treated as the one
astral character it represents, not two spurious replacements.
Encode a full DXF document string (as produced by DxfWriter.toString) to windows-1252 bytes — the encoding its own
$DWGCODEPAGE ANSI_1252header variable declares. Iterates by code point (not UTF-16 code unit) so a surrogate pair is treated as the one astral character it represents, not two spurious replacements.