From 388165f824efca200ae77df26238227bf8994861 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Jul 2020 08:42:07 +0530 Subject: [PATCH] py3 compat --- src/calibre/utils/unicode_names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/unicode_names.py b/src/calibre/utils/unicode_names.py index b9c40f6ba1..3ef9a739df 100644 --- a/src/calibre/utils/unicode_names.py +++ b/src/calibre/utils/unicode_names.py @@ -35,7 +35,7 @@ def points_for_word(w): w = w.lower() ans = points_for_word.cache.get(w) if ans is None: - ans = plugins['unicode_names'][0].codepoints_for_word(w.encode('utf-8')) | html_entities().get(w, set()) + ans = plugins['unicode_names'][0].codepoints_for_word(w) | html_entities().get(w, set()) points_for_word.cache[w] = ans return ans