I'm having trouble getting a Unicode Encode Error on jrnl (Python) on Mac / Marvericks.

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

I'm having trouble getting a Unicode Encode Error on jrnl (Python) on Mac / Marvericks.
I'm having trouble getting "ERROR: cannot execute ALTER TABLE in a read-only transaction" on heroku
Building a Python environment on Mac
Create a Python environment on Mac (2017/4)
Create a python environment on your Mac
What to do if a Unicode Encode Error occurs in Sublime Text Python
Build a Python environment on Mac (Mountain Lion)
Build a Python development environment on your Mac
Set up a Python development environment on Marvericks
python on mac
Build a machine learning Python environment on Mac OS
Build a Python development environment on Mac OS X
If you encounter a "Unicode Decode Error" in Python
Build a Python environment on your Mac using pyenv
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
Building a Python environment on a Mac and using Jupyter lab
Build a python data analysis environment on Mac (El Capitan)
Build a Python extension for E-Cell 4 on Mac OSX (Yosemite)
Create a virtual environment for python on mac [Very easy]