Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> How so?
> Or does GetTemplateEncoding() not get the template encoding?
GetTemplateEncoding gets the current DB's encoding. I think that
may have been because of a hack replacing a kluge ;-) ... but that's
how it works now.
Assuming that it did once produce template1's encoding, that would
seem to be further evidence in favor of my proposal to copy the
source (template) database's encoding.
regards, tom lane