leostat / rtfm

A database of common, interesting or useful commands, in one handy referable form
https://necurity.co.uk/osprog/2017-02-27-RTFM-Pythonized/
GNU General Public License v3.0
745 stars 93 forks source link

Non Ascii Issues #79

Open leostat opened 7 years ago

leostat commented 7 years ago
Traceback (most recent call last):
  File "./rtfm.py", line 755, in <module>
    run()
  File "./rtfm.py", line 132, in run
    Search(conn, sqlcmd, sqltpl, sqllst)
  File "./rtfm.py", line 154, in Search
    PrintThing(cmd)
  File "./rtfm.py", line 584, in PrintThing
    print table.table
  File "/usr/local/lib/python2.7/dist-packages/terminaltables/base_table.py", line 216, in table
    dimensions = max_dimensions(self.table_data, self.padding_left, self.padding_right)[:3]
  File "/usr/local/lib/python2.7/dist-packages/terminaltables/width_and_alignment.py", line 107, in max_dimensions
    inner_widths[i] = max(inner_widths[i], *[visible_width(l) for l in cell.splitlines()])
  File "/usr/local/lib/python2.7/dist-packages/terminaltables/width_and_alignment.py", line 28, in visible_width
    string = string.decode('u8')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 94-95: unexpected end of data

caused by : https://github.com/aemkei/katakana.js

g33k247 commented 7 months ago

Unable to have pretty output.