Mykola Stryebkov wrote:
> Hi,
>
> # psql83 template1
> Password:
> Welcome to psql83 8.3.5, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help with psql commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> template1=# drop database inf;
> DROP DATABASE
> template1=# create database inf with encoding 'windows-1251';
> WARNING: could not determine encoding for locale "uk_UA.KOI8-U":
> codeset is "KOI8-U"
> DETAIL: Please report this to <pgsql-bugs@postgresql.org>.
> CREATE DATABASE
> template1=#
>
> What's wrong with it?
PostgreSQL does not support the KOI8-U encoding. You could try to use
uk_UA.utf8.