Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode support across consoles #486

Closed
ocean314 opened this issue Jun 16, 2017 · 9 comments · Fixed by #649
Closed

Unicode support across consoles #486

ocean314 opened this issue Jun 16, 2017 · 9 comments · Fixed by #649
Labels
documentation Improvements or additions to documentation 🔒 Outdated
Milestone

Comments

@ocean314
Copy link

Hello. There is the problem with cirillyc unicode. How to solve it? Thanks!

@mariashinoto
Copy link

This seems to be a problem with jrnl saving text written in the terminal directly as ASCII.

I have the same problem with German and Japanese -- turns out to be garble.

Wish this could be fixed. For the time being, I work with an external editor, I took nano for convenience because it keeps the utf8 encoding intact.

@ocean314
Copy link
Author

Right. Works with vim.

@maebert
Copy link
Contributor

maebert commented Jun 27, 2017

Which terminal / emulator and OS are you using, @ocean314?

@maebert maebert self-assigned this Jun 27, 2017
@maebert maebert added the bug Something isn't working label Jun 27, 2017
@ocean314
Copy link
Author

ocean314 commented Jul 4, 2017

@maebert , It was Gnome Terminal under Fedora.

@ArneBachmann
Copy link

Set the console encoding to UTF-8, configure the .jrnl_config to UTF-8 and it should work, right?
Unter Windows, I was able to operate jrnl using UTF-8 by setting the code page to 65001

@gatezh
Copy link

gatezh commented Jul 6, 2017

@ArneBachmann how to configure .jrnl_config?

@ArneBachmann
Copy link

ArneBachmann commented Jul 7, 2017

My bad, there is no need to configure the encoding in the .jrnl_config, just make sure that your console has the right encoding defined.

On the GitHub page the first link goes to the documentation. Under advanced usage it is explained how to configure the configuration file, and where it is stored.

On Windows you have to take further measures to make the console unicode aware (change to cp65001 in the registry), and then tweak Python to recognize the encoding (add 'cp65001': 'utf_8', to Lib/encoding/aliases.py).

Here is my config file:

{
  "journals": {
    "default": "D:\\Arne\\docs\\work\\information\\journal.txt"
  },
  "editor": "C:\\Program Files\\Sublime Text 3\\sublime_text.exe",
  "encrypt": false,
  "default_hour": 8,
  "default_minute": 0,
  "timeformat": "%Y%m%d-%H%M%S",
  "tagsymbols": "@",
  "highlight": true,
  "linewrap": false
}

I converted four years worth of tiddly wiki contents to jrnl (due to banning Firefox at my workplace) and had to make sure that the encoding of the journal.txt file is in UTF-8, but after that everything works together fine.

@wren wren added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jul 20, 2019
@wren wren added this to the Docs Updates milestone Jul 20, 2019
@wren
Copy link
Member

wren commented Jul 20, 2019

@ArneBachmann Thank you for reporting back with your findings! We need to update the docs with your info.

@wren wren changed the title cirillyc Unicode support across consoles Jul 20, 2019
maebert added a commit that referenced this issue Aug 24, 2019
@wren wren closed this as completed in #649 Aug 24, 2019
wren pushed a commit that referenced this issue Apr 18, 2020
Found and removed another angsty teenager
@lock
Copy link

lock bot commented May 21, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the 🔒 Outdated label May 21, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation 🔒 Outdated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants