itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 72 forks source link

How can I fix this messy encoding? #163

Closed yaohunzhanyue closed 4 years ago

yaohunzhanyue commented 4 years ago

image This plugin works fine till I reinstall it, then it became like this.

itchyny commented 4 years ago

What :echo [v:lang, &enc] outputs?

yaohunzhanyue commented 4 years ago

@itchyny ['zh_CN', 'utf-8']

itchyny commented 4 years ago

Please try the following command to see the output. :echo map(range(3, 9), "strftime('%a', 60 * 60 * (24 * v:val + 10))")

yaohunzhanyue commented 4 years ago

@itchyny ['????', '??涓??', '??浜??', '??涓??', '????', '??浜??', '????']

I wish it could be right, Chinese or English doesn't really matter. (Hopefully, do not need to change system language) Thanks.

itchyny commented 4 years ago

Add both language message en_US.UTF-8 and language time en_US.UTF-8 to your vimrc and please restart Vim.

yaohunzhanyue commented 4 years ago

@itchyny Great, it works, tks~