IFClite TypeScript API
    Preparing search index...

    Function encodeDxfCp1252

    • 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.

      Parameters

      • text: string

      Returns Cp1252EncodeResult