I have been porting my delphi app to lazarus and when I connect to a database
with a unicode name like this for instance:Россия
I get this error with useunicode enabled:

The database is UTF8 encoded and it works on the Delphi version with the same code.
I think the problem is the FCL is not unicode while the LCL is and there must be some routine
that is using the FCL and the string is not being converted.
When I examine the tpgconnection database name in the debugger it shows the correct text
It just errors when I call the connect method.
I am using the latest source of PGdac as well.
Any ideas?