This patch fixes a bug in the error reporting of the new connection dialog when setting the database encoding.
ahp