Hi,
While I had tried to use view.substr() to extract Japanese character (utf-8) on a buffer, it didn’t work.
Is it possible to handle this correctly ?
Text on a buffer:
あいうえお
and I had tried to use view.substr() on the console:
print view.substr(sublime.Region(0,2))
then, codecs.py had caused the following error messages:
>>> print view.substr(sublime.Region(0,2))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py", line 352, in write
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py", line 351, in write
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
It would be much appreciated if you could give any answer.
Thank you,