You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CsvConverter throws UnicodeDecodeError when charset detection from partial content returns 'ascii' #1949
\CsvConverter\ uses \stream_info.charset\ (detected from first 4096 bytes) to decode CSV files. When the first 4096 bytes are ASCII-only but the full file contains non-ASCII characters (e.g., accented characters, UTF-8), .decode('ascii')\ raises \UnicodeDecodeError.
Reproducible example
\\python
from markitdown import MarkItDown
import io
CSV with UTF-8 characters beyond the first 4096 bytes
#2360 substantially increased the charset-detection window and added better handling and diagnostics for incorrect ASCII guesses, which should address this report. Since the original reproducer is no longer available, I’m closing this as likely resolved. Please reopen with a sample file that still fails against 0.1.8b1 or later.
Activity
afourney commentedon Sep 4, 2026
#2360 substantially increased the charset-detection window and added better handling and diagnostics for incorrect ASCII guesses, which should address this report. Since the original reproducer is no longer available, I’m closing this as likely resolved. Please reopen with a sample file that still fails against 0.1.8b1 or later.