"James Pang (chaolpan)" <chaolpan@xxxxxxxxx> writes: > With client_encoding=UTF8 and server_encoding=LATIN1, looks like insert into value with chr(codepoint) bypass encoding conversion , is it expected ? test as below , The chr() function is a server-side operation that has nothing to do with the client encoding. regards, tom lane