Text editor, vi에서 UTF-8 document를 편집하기

Description
UTF-8로 저장된 document를 편집한다.

Cause

Action 1

PuTTY Reconfiguration

PuTTY Reconfiguration에서 ‘Received data assumed to be in which character set’를 UTF-8로 변경한다.

Action 2

[proxies@www ~]$ vi .vimrc
set enc=utf-8
set fileencoding=utf-8

file encoding를 utf-8로 설정한다.

Action 3

[proxies@www ~]$ vi document.html

:set fileencoding=utf-8
:set wq

euc-kr로 되어 있는 document를 utf-8로 변환하여 저장한다.

Leave a Reply

Your email address will not be published. Required fields are marked *