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
mht files (and xls files containing mht content) may not be decoded using the correct charset. htmlxls2xlsx.py uses the UnicodeDammit package from bs4 to decode the contents, which guesses what encoding to use. Sometimes it guesses wrong. However, these files typically contain a line like:
Content-Type: text/html; charset="windows-1252"
which specifies the proper encoding. The call to UnicodeDammit should be changed to pass in the encoding if the file contains such a line.
The text was updated successfully, but these errors were encountered:
mht files (and xls files containing mht content) may not be decoded using the correct charset.
htmlxls2xlsx.py
uses theUnicodeDammit
package from bs4 to decode the contents, which guesses what encoding to use. Sometimes it guesses wrong. However, these files typically contain a line like:which specifies the proper encoding. The call to
UnicodeDammit
should be changed to pass in the encoding if the file contains such a line.The text was updated successfully, but these errors were encountered: