Skip to content

Commit 01a9213

Browse files
KSemenenkoCopilot
andauthored
Update src/MarkItDown/Converters/RtfConverter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e797d21 commit 01a9213

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MarkItDown/Converters/RtfConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private static string ExtractText(string rtf)
9797
if (i + 1 < rtf.Length)
9898
{
9999
var hex = rtf.Substring(i, 2);
100-
if (byte.TryParse(hex, System.Globalization.NumberStyles.HexNumber, null, out var value))
100+
if (byte.TryParse(hex, System.Globalization.NumberStyles.HexNumber, CultureInfo.InvariantCulture, out var value))
101101
{
102102
builder.Append(Encoding.Default.GetString(new[] { value }));
103103
}

0 commit comments

Comments
 (0)