Code:
Error while running command db_connect: Failed to connect to the database: PGError: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT:  Use the same encoding as in the template database, or use template0 as template.
:CREATE DATABASE "hax" ENCODING = 'utf8'


/opt/metasploit/apps/pro/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1422:in `db_connect_postgresql'
/opt/metasploit/apps/pro/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1286:in `cmd_db_connect'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in `run_command'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in `block in run_single'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `each'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `run_single'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/shell.rb:199:in `run'
/opt/metasploit/apps/pro/msf3/msfconsole:134:in `<top (required)>'
/opt/metasploit/apps/pro/engine/msfpro:101:in `load'
/opt/metasploit/apps/pro/engine/msfpro:101:in `<main>'
Does anyone know how to fix this? its a locale error but im unsure how to fix it.