Auto Codepage Detection

Auto Codepage Detection

Aspose.CAD supports auto codepage detection for DWG and DWF files. If you do not wish to use this feature, you can override this by setting the following properties of the LoadOptions class.

  • SpecifiedEncoding: sets encoding used to read text data from non-Unicode DXF and DWG formats. It is autodetected by default.
  • SpecifiedMifEncoding: sets encoding used to read MIF-encoded symbols of CJK encodings (M+nXXXX format). It is autodetected by default.
  • RecoverMalformedCifMif: defines whether CIF (U+XXXX) and MIF-encoded characters will be decoded if they do not have proper AutoCAD formatting (AutoCAD precedes these symbols with a backslash). By default, they are decoded.

Sample Code

The code sample below shows how to how to override auto codepage detection in Aspose.CAD.