From 036ab2a55ada2d2eee1643fde5cd8ed6680ab528 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 19 Feb 2026 16:42:54 -0500 Subject: [PATCH] docs: add context to FixDegreeSymbol workaround Co-Authored-By: Claude Opus 4.6 --- ExportDXF/Services/PartExporter.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ExportDXF/Services/PartExporter.cs b/ExportDXF/Services/PartExporter.cs index eb314f7..789e9bf 100644 --- a/ExportDXF/Services/PartExporter.cs +++ b/ExportDXF/Services/PartExporter.cs @@ -316,8 +316,11 @@ namespace ExportDXF.Services } /// - /// ACadSharp misreads the UTF-8 degree symbol (C2 B0) as two ANSI_1252 - /// characters (°). Fix it in the written DXF so bend notes display correctly. + /// Workaround for ACadSharp encoding bug (no upstream fix as of v3.4.9). + /// ACadSharp's DxfReader uses $DWGCODEPAGE (ANSI_1252) to decode text, but + /// AC1018+ DXF files use UTF-8. The degree symbol ° (UTF-8: C2 B0) gets + /// misread as two ANSI_1252 characters:  (C2) and ° (B0). + /// See: https://github.com/DomCR/ACadSharp/issues?q=encoding /// private static void FixDegreeSymbol(string path) {