I am getting out of my depth here, but I am pretty sure that: ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'Turkish_Turkey.1254' is not going to work. That you will need to change the locale to a Turkish UTF8 name.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных