We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ea29dd + 8153a0f commit c7df148Copy full SHA for c7df148
src/imgshow.py
@@ -45,7 +45,7 @@ def render(image):
45
width = image.shape[1]
46
for y in range(height):
47
for x in range(width):
48
- print(image[y][x], end='')
+ print(image[y][x].encode('utf-8'), end='')
49
print('')
50
#}}}
51
@@ -75,15 +75,14 @@ def main(argv=None):
75
76
data = None
77
width = 80
78
- # chars = '@#$=*!;:~-,. '
79
- chars = ' .,-:;!*=$#@'
+ chars = u' .,-:;!*=$#@'
80
81
if argc >= 4:
82
- if len(argv[3]) < 1:
+ chars = argv[3]
+ chars = chars.decode('utf-8')
83
+ if len(chars) < 1:
84
print('%s: error: chars must contain at least one character' % (argv[0]))
85
return 1
- chars = argv[3]
86
-
87
88
if argc >= 3:
89
try:
0 commit comments