docs: add context to FixDegreeSymbol workaround
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -316,8 +316,11 @@ namespace ExportDXF.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ACadSharp misreads the UTF-8 degree symbol (C2 B0) as two ANSI_1252
|
/// Workaround for ACadSharp encoding bug (no upstream fix as of v3.4.9).
|
||||||
/// characters (°). Fix it in the written DXF so bend notes display correctly.
|
/// 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
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void FixDegreeSymbol(string path)
|
private static void FixDegreeSymbol(string path)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user