Fix: Improved CSV encoding detection for legacy data with non-standard characters
- Changed encoding fallback order to prioritize iso-8859-1/latin-1 over cp1252 - Increased encoding test from 1KB to 10KB to catch issues deeper in files - Added proper file handle cleanup on encoding failures - Resolves 'charmap codec can't decode byte 0x9d' error in rolodex import - Tested with rolodex file containing 52,100 rows successfully
This commit is contained in:
@@ -12,3 +12,4 @@ aiofiles==23.2.1
|
||||
structlog==24.1.0
|
||||
itsdangerous==2.2.0
|
||||
fpdf2>=2.7,<3
|
||||
pytest==8.3.3
|
||||
|
||||
Reference in New Issue
Block a user