I have following experience:
After pg_dump mydb > db.out output contains one or more \connect -
somebody, but client_encoding is not set. It causes restoration problems
on databases with different default client_encoding. I think
client_encoding may be set after each \connect.