linux vi editor special character gets converted into something else

419 views Asked by At

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?

1

There are 1 answers

2
BigMike On

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

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