diff options
Diffstat (limited to 'data')
-rwxr-xr-x | data/db/google/create_db_from_google.py | 2 | ||||
-rw-r--r-- | data/db/open-phrase/Makefile.am | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/data/db/google/create_db_from_google.py b/data/db/google/create_db_from_google.py index ff4b7f8..4cb3c61 100755 --- a/data/db/google/create_db_from_google.py +++ b/data/db/google/create_db_from_google.py @@ -49,7 +49,7 @@ def create_db(): s, y = pinyin_id[s], pinyin_id[y] columns.append(s) columns.append(y) - values = "'%s', %d, %s" % (hanzi, l - i, ",".join(map(str,columns))) + values = "'%s', %d, %s" % (hanzi.encode("utf8"), l - i, ",".join(map(str,columns))) sql = insert_sql % (len(hanzi) - 1, values) print sql diff --git a/data/db/open-phrase/Makefile.am b/data/db/open-phrase/Makefile.am index 5947abb..2acc892 100644 --- a/data/db/open-phrase/Makefile.am +++ b/data/db/open-phrase/Makefile.am @@ -23,7 +23,6 @@ if IBUS_BUILD_DB_OPEN_PHRASE db_file = open-phrase.db main_db_DATA = \ db/$(db_file) \ - db/COPYING \ $(NULL) main_dbdir = $(pkgdatadir)/db |