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

      Parameters

      • text: string

      Returns Cp1252EncodeResult