Skip to content

Do not work with unicode rows. #1

Open

Description

@Wasapl

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)

Activity

  1. fropert commented on Jul 19, 2013

    @fropert

    +1

  2. added a commit that references this issue on Apr 22, 2014
  3. added a commit that references this issue on Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions