I'm using:
Neovim v0.4.4
Mac v10.13.6
iTerm2
When I copy non English text, for example 中文(简体)
and paste it to neovim, it become ????
The same thing happens to when I copy it from neovim and paste into any other place.
How can I fix this?
set encoding
gives encoding=utf-8
.
encoding
option support these characters? That’s a likely culprit – D. Ben Knoble♦ Oct 29 '20 at 12:44encoding
info into the description. – Lai32290 Oct 29 '20 at 12:48:language
and:!locale
, but knowing you're in utf-8 is a start. The next step is to find out if utf-8 supports those characters, and whether or not the exact ones you're coping are encoded in utf-8. Unfortunately, I'm not much help there. – D. Ben Knoble♦ Oct 29 '20 at 13:17LC_ALL
andLANG
(there are several others) control encoding assumptions, output formats, sort order, etc. of well-written programs. Generally the correct think to do is to configure your terminal emulator or system to set them appropriately. e.g., my Macbook is in French; when I launch Terminal.app, it sets all the variables automatically. But alacritty doesn't, so I have to add them to my alacritty config. (...) – D. Ben Knoble♦ Oct 29 '20 at 13:57