Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not work with unicode rows. #1

Open
Wasapl opened this issue Dec 7, 2012 · 1 comment
Open

Do not work with unicode rows. #1

Wasapl opened this issue Dec 7, 2012 · 1 comment

Comments

@Wasapl
Copy link

Wasapl commented Dec 7, 2012

ActivePython 2.7.2.5 (ActiveState Software Inc.) based on
Python 2.7.2 (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

row = (u'Вася',u'Пупкин')
import texttable
t = texttable.Texttable()
t.add_row(row)
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\texttable-0.8.1-py2.7.egg\texttable.py", line 300, in add_row
cells.append(self._str(i,x))
File "C:\Python27\lib\site-packages\texttable-0.8.1-py2.7.egg\texttable.py", line 359, in _str
return str(x)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

@fropert
Copy link

fropert commented Jul 19, 2013

+1

bufordtaylor pushed a commit that referenced this issue Apr 22, 2014
…sion

Use integer divison on two lines to fix TypeErrors
bufordtaylor added a commit that referenced this issue Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants