Allow custom exclusion of encodings, not just encodings to try first

Bug #1469408 reported by Leonard Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

Feature request from https://groups.google.com/forum/#!topic/beautifulsoup/eHtTvyZ82jc:

I'm having an issue with guessing file encodings based on UnicodeDammit (w. chardet installed).

dammit.original_encoding tells me that the encoding is "maccyrillic" although it is utf-8.
Therefore, I'd like to exclude "maccyrillic" from the list of possible encodings to check for. The only option I've found is to explicitely define a list of suspicions (which doesn't work for my usecase).

Revision history for this message
Leonard Richardson (leonardr) wrote :

Feature added in revision 373.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.