1

I'm using NVIM v0.4.3 with set clipboard=unnamed. I can insert special character like üäö in vim just fine, but if I copy content containing special characters in vim and try to paste them outside of vim they appear as garbage. Yanking/pasting inside of vim works just fine.

Examples:

  • inside nvim "über" becomes "√ºber" outside
  • inside nvim "äffchen" become √§ffchen outside

Further Information: I'm running neovim in iTerm2 (zsh) on macOS Catalina.

2
  • Which OS? Are you running nvim in a Terminal (if so, which?) or a GUI version of nvim such as nvim-qt?
    – filbranden
    Commented May 3, 2020 at 12:05
  • 1
    @filbranden See my edit. Commented May 3, 2020 at 12:26

1 Answer 1

4

Make sure your locale contains the full UTF8 specification to a language; i.e. not something like en_US, but en_US.UTF-8. See this issue.

1
  • 1
    Thank you! This did fix my problem. I added export LANG=en_US.UTF-8 to my .zshrc. Commented May 3, 2020 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.