-
-
Notifications
You must be signed in to change notification settings - Fork 159
CJK Characters in Week Agenda do not Display Correctly #879
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
Comments
Did you try changing the language inside neovim as suggested here https://nvim-orgmode.github.io/troubleshoot#dates-are-not-in-english ? |
Thanks, after adding that command in init script, it works properly. |
I would address it, but I'm not sure how. I'm not doing any encoding, just formatting the date with the What do you get when you execute this in your command line, without the language setting I mentioned in previous comment?
|
Judging by this question https://vi.stackexchange.com/questions/27706/chinese-characters-become-unrecognizable-overnight-in-neovim, it might be solvable by setting the Try this:
If it's not updated, then restart Neovim and do this:
|
What is your default encoding value? ( |
It is |
Can you try switching to this branch and see if it works? https://github.com/nvim-orgmode/orgmode/tree/fix/encoding |
Ah, ok, so you adding that to your configuration fixes everything? I'll add this to the troubleshooting if it fixes it for you. |
Yes, it works for me. Thanks for your help! |
Awesome! Thanks! |
Describe the bug
See screenshot, the Monday and January print as some thing like
<d0><c7><c6><da><c8><fd>
.The cause of this issue might be that my computer's operating system is Windows 11, with Chinese set as the default display language, and the default encoding in Windows is GBK. In the Chinese environment, "Wendesday" is displayed as "星期三", so when the GBK-encoded content is displayed directly in nvim, it becomes garbled because nvim uses UTF-8 for parsing.
Same issue may also exist in Japanese Windows OS which default encoding is Shift JIS.
Steps to reproduce
Expected behavior
It should display the Chinese character properly like:
or use English:
Emacs functionality
No response
Minimal init.lua
Same as template
Screenshots and recordings
OS / Distro
Windows 11
Neovim version/commit
NVIM v0.10.2
Additional context
No response
The text was updated successfully, but these errors were encountered: