서비스 실행 시, 아래와 같은 로그가 찍힌다면 protgres의 인코딩은 변경해야 함
Caused by: java.lang.IllegalStateException:
org.postgresql.util.PSQLException:
ERROR: character with byte sequence 0xed 0x94 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252"
CMD를 관리자 권한으로 실행
런처 설치 경로의 pgsql로 이동(..\STATIC Launcher LITE\builtin\pgsql\bin)
postgres 실행
$ psql.exe -U postgres -p 18001
encoding 확인 → UTF8이 아닐 경우 문제가 될 수 있음
postgres # show server_encoding;
postgres # show client_encoding;
UTF8이 아닐 경우, UTF8로 변경
postgres # set server_encoding='UTF8';
postgres # set client_encoding='UTF8';
CMD창 종료
..\STATIC Launcher LITE\builtin\pgsql 경로에 있는 stop_server.bat
를 오른쪽 클릭하여 관리자 권한으로 실행
Windows 서비스에서 STATIC Launcher 중지후 , 시작