Skip to content

Commit 8f5b4cb

Browse files
committed
Check if character is �.
1 parent 1608c07 commit 8f5b4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ReClass.NET/Extensions/StringExtensions.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static class StringExtension
1313
[DebuggerStepThrough]
1414
public static bool IsPrintable(this char c)
1515
{
16-
return !char.IsControl(c) || char.IsWhiteSpace(c);
16+
return (!char.IsControl(c) || char.IsWhiteSpace(c)) && c != '\xFFFD' /* Unicode REPLACEMENT CHARACTER � */;
1717
}
1818

1919
[DebuggerStepThrough]

0 commit comments

Comments
 (0)