Dev
[postgresql] ERROR: character with byte sequence 0xea 0xb0 0x9c in encoding "UTF8" has no equivalent in encoding "LATIN1"
김문기
2017. 4. 17. 15:06
테이블을 select 하고자 했지만 다음과 같은 에러가 발생 하였다.
ERROR: character with byte sequence 0xea 0xb0 0x9c in encoding "UTF8" has no equivalent in encoding "LATIN1"
해결 방법은 다음과 같다.
1. DB 접속
psql -U <user name> -d <db name> -p <port number>
2. 클라이언트 인코딩 확인 및 세팅
show client_encoding; // LATIN1 로 인코딩이 세팅 되어있는 것을 확인
set client_encoding = 'utf8'; // 인코딩 셋
show client_encoding; // utf8 로 인코딩이 변경 된 것을 확인