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.

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

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.

| improve this answer | |
  • 1
    Thank you! This did fix my problem. I added export LANG=en_US.UTF-8 to my .zshrc. – user7802048 May 3 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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