keep icon indicating copy to clipboard operation
keep copied to clipboard

UnicodeEncodeError

Open rytoj opened this issue 7 years ago • 6 comments

Getting UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) after trying to search command with grep: ╰─± python slack_bot.py 2>&1 | tee /tmp/slack.log

rytoj avatar May 03 '17 11:05 rytoj

Hey @rytoj, Can you help me with more information? What is the stored command and what was your keep grep command?

OrkoHunter avatar May 03 '17 11:05 OrkoHunter

@OrkoHunter yea sure.

Stored keep command: ╰─± python slack_bot.py 2>&1 | tee /tmp/slack.log To get the output on the console AND in a file file.txt

Error is triggered after: $ keep grep python $ keep rm slack_bot

I think this error is caused by ╰─± characters, I accidentally copied them from terminal.

rytoj avatar May 04 '17 07:05 rytoj

Hmm... You can open your ~/.keep/commands.json and manually remove the command-description pair from the json.

OrkoHunter avatar May 04 '17 07:05 OrkoHunter

Wouldn't keep rm help here?

kshitij10496 avatar May 05 '17 08:05 kshitij10496

@kshitij10496 I think any command involving that character will ultimately raise some error.

OrkoHunter avatar May 05 '17 09:05 OrkoHunter

Error involved, when I'm trying to using cyrillic symbols

{"echo 123": "вывести 123"}

Krknv avatar Jan 23 '18 09:01 Krknv