Database encoding - Mailing list pgadmin-hackers

From Jean-Michel POURE
Subject Database encoding
Date
Msg-id 4.2.0.58.20010922204950.00a75da0@pop.freesurf.fr
Whole thread Raw
List pgadmin-hackers
Hello all,

Should database encoding display as an integer or a string value?

CREATE DATABASE name [ WITH [ LOCATION = 'dbpath' ] [ TEMPLATE = template ]
[ ENCODING = encoding ] ] is a string.
Also, in pSQL SHOW CLIENT_ENCODING returns a string.

select pg_encoding_to_char(iEncoding) returns encoding.
pg_char_to_encoding (szEncoding) returns iEncoding.

UNICODE is enabled on my server, I have the following results:
1=EUC-JP
2=EUC-CN
3=EUC_KR
4=EUC_TW
5=UNICODE
6=MULE_INTERNAL
7= LATIN1 etc...

I don't have the time to write more because I have to leave now.

Regards,
Jean-Michel

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Elephant splash screen
Next
From: Dave Page
Date:
Subject: Re: Database encoding