Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1156 by niejieqiang: 转换码表的时候出现        UnicodeEncodeError:
http://code.google.com/p/ibus/issues/detail?id=1156


转换码表的时候出现 UnicodeEncodeError: 这个怎么解决? 我使用的是CJK-D字集的郑 码码表.
文件来源:http://yong.uueasy.com/read-htm-tid-1633.html

r...@laptop:/usr/share/ibus-table/tables# ibus-table-createdb -n zhengma_cizu.db -s zhengma_cizu.txt
Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/tabcreatedb.py", line 297, in <module>
    main ()
  File "/usr/share/ibus-table/engine/tabcreatedb.py", line 226, in main
    phrases = phrase_parser ( table)
File "/usr/share/ibus-table/engine/tabcreatedb.py", line 165, in phrase_parser
    list.append ( (xingma, phrase, int(freq), 0) )
UnicodeEncodeError: 'decimal' codec can't encode character u'\u309b' in position 0: invalid decimal Unicode string
r...@laptop:/usr/share/ibus-table/tables#

是里面的一些字符不能转换吗?

--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复