Use calibre's chardet

This commit is contained in:
Tom Scholl 2011-08-24 17:33:03 +01:00
parent 93f37ee295
commit 2fc5adcb84

View File

@ -1,5 +1,5 @@
import re
import chardet
from calibre.ebooks import chardet
def get_encoding(page):
text = re.sub('</?[^>]*>\s*', ' ', page)