The memo program jrnl that can be used in the terminal is super convenient, but it suddenly went crazy.
No matter how many times I hit, this error
$ jrnl
Traceback (most recent call last):
File "/usr/local/bin/jrnl", line 9, in <module>
load_entry_point('jrnl==1.8.1', 'console_scripts', 'jrnl')()
File "/Library/Python/2.7/site-packages/jrnl/cli.py", line 159, in run
touch_journal(config['journal'])
File "/Library/Python/2.7/site-packages/jrnl/cli.py", line 92, in touch_journal
util.prompt("[Journal created at {0}]".format(filename))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordinal not in range(128)
When I read the target source, it seems to be falling when opening the file.
$ jrnl -Since ls passes, I wonder if unicode is mixed somewhere~/.jrnl_Except for config, unicode was mixed as expected.
#### **`.jrnl_config`**
{ "default_hour": 9, "timeformat": "%Y-%m-%d %H:%M", "linewrap": 79, "encrypt": false, "editor": "", "default_minute": 0, "highlight": true, "journals": { "default": "\u307b\u3052\u307b\u3052\u307b\u3052\u307b\u3052\u307b\u3052\u307b\u3052" }, "tagsymbols": "@" }
I quickly changed the target part to ```" ~ / jrnl.txt "``` and it was cured.
I'm not sure why this happened Sweat
Recommended Posts