Обсуждение: initdb --encoding=LATIN1 fails on Windows

Поиск
Список
Период
Сортировка

initdb --encoding=LATIN1 fails on Windows

От
"Abraham, Danny"
Дата:
The same command worked fine on PG 8.2.4.

Now, using 8.3.7,  we are forced into WIN1252.

Thanks

Danny

Re: initdb --encoding=LATIN1 fails on Windows

От
Jan-Peter Seifert
Дата:
Abraham, Danny wrote:

> The same command worked fine on PG 8.2.4.
> Now, using 8.3.7,  we are forced into WIN1252.

In 8.2 on Windows code page 28591 has been used. If you use this as
locale initdb should give you LATIN1.

Something like this should work for you as well:
initdb --locale=German_Germany.28591 -W -A md5 -D
"C:\Programme\PostgreSQL\8.3\data"

Good luck,

Peter