How can i change database encoding for a PostgreSQL database using sql or phpPgAdmin?
You can change encoding on the fly without dump/restore:
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'database_name'