Open andreasbaumann opened 7 years ago
The following test program fails with the same error message:
print unicode("风雷动")
Traceback (most recent call last):
File "test_unicode.py", line 4, in
The following example works:
print unicode(u'风雷动').encode('utf-8')
My suggestions for using strus with Python 2.7 is to convert python strings explicitely to "UTF-8" as soon as possible.
Starting with revision 0.16 the bindings of strus are based on python3.x, support for python2.7 is dropped. There are still issues of unicode in the Wikipedia demo search. These are caused by the rewriting of the python part of the code from Python2.7 to 3.4. The bindings and strus itself is supporting Unicode.
The version is 2.7.6 (the version used in the docker images of the tutorial).