diff options
Diffstat (limited to 'dodai/tools/himo.py')
-rw-r--r-- | dodai/tools/himo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dodai/tools/himo.py b/dodai/tools/himo.py index aa4da6c..f56eaf8 100644 --- a/dodai/tools/himo.py +++ b/dodai/tools/himo.py | |||
@@ -23,6 +23,7 @@ from htmlentitydefs import name2codepoint | |||
23 | from htmlentitydefs import codepoint2name | 23 | from htmlentitydefs import codepoint2name |
24 | from decimal import Decimal as D | 24 | from decimal import Decimal as D |
25 | from dodai.exception import HimoAsciiError | 25 | from dodai.exception import HimoAsciiError |
26 | from dodai.tools import normalize_unicode | ||
26 | 27 | ||
27 | class String2Himo(object): | 28 | class String2Himo(object): |
28 | """ | 29 | """ |
@@ -53,6 +54,7 @@ class String2Himo(object): | |||
53 | encoding = encoding or self.default_encoding | 54 | encoding = encoding or self.default_encoding |
54 | data = self._as_unicode(data, encoding) | 55 | data = self._as_unicode(data, encoding) |
55 | data = self._decode_html(data) | 56 | data = self._decode_html(data) |
57 | data = normalize_unicode(data) | ||
56 | return Himo(data) | 58 | return Himo(data) |
57 | 59 | ||
58 | def _as_unicode(self, data, encoding): | 60 | def _as_unicode(self, data, encoding): |