aboutsummaryrefslogtreecommitdiff
path: root/dodai/tools/himo.py
diff options
context:
space:
mode:
Diffstat (limited to 'dodai/tools/himo.py')
-rw-r--r--dodai/tools/himo.py2
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
23from htmlentitydefs import codepoint2name 23from htmlentitydefs import codepoint2name
24from decimal import Decimal as D 24from decimal import Decimal as D
25from dodai.exception import HimoAsciiError 25from dodai.exception import HimoAsciiError
26from dodai.tools import normalize_unicode
26 27
27class String2Himo(object): 28class 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):