> Hi Robert,
>
> On Sunday, 2021-07-18 06:18:36 -0700, Robert Solomon wrote:
>
>> I often copy-paste from a browser into a text file to save the content I
>> come across. When I try to save the file, I often get a conversion error.
>> I have to manually go thru each error and change the extended character to
>> an ascii one.
> Likely the text pasted from clipboard is in a different text encoding
> (usually UTF-16 on Windows) than the file is saved in, and the file's
> text encoding can't represent all characters. Issue the command
>
> :set fenc?
>
> that displays the current fileencoding. To be on the safe side choose an
> encoding that can represent all Unicode characters, common is UTF-8.
>
> So,
>
> :set fileencoding=utf-8
>
> before saving.
>
> Best have encoding (taken from current locale) and fileencoding aligned
> set to utf-8, but things may be more complicated on Windows. See
>
https://vim.fandom.com/wiki/Working_with_Unicode and the help sections
> it references.
>
> Eike
>