Peter Eisentraut <peter_e@xxxxxxx> writes: > Tom Lane wrote: >> A possible solution therefore is to have psql or libpq drive the >> client_encoding off the client's locale environment instead of >> letting it default to equal the server_encoding. > I have been proposing that for years, but just about now the Japanese > would speak up and protest ... I say, rush this in before anyone > notices. I guess the key point might be "what do we do if the client locale is C?" Perhaps if it's C, we continue to use the server encoding as we have in the past. This would be a reasonable fallback in other cases where we fail to deduce an encoding from the locale, too. regards, tom lane