简体   繁体   中英

linux vi editor special character gets converted into something else

When I paste the below word in linux vi editor it gets changed:-

actual word :- Confirmación changed word :- Confirmaci�n

any idea why this is happening and how can i fix this?

Try reloading your file with ISO-Latin (ISO-8859-1) encoding:

:set fileencoding=ISO-8859-1
:e! ++enc=ISO-8859-1
:w!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM