Qt can not connect to mongodb with mongocxx driver

The error message is complaining that it’s finding characters non-UTF8 characters in the string.

Can you Check for Hidden Characters? Ensure that there are no hidden or non-printable characters in your URI string. Sometimes, copying and pasting code can introduce such characters.

Can you also show the code you are using to create mongocxx::client with Qt?