At the end of the connection string plus encoding = UNICODE
string connStr = "Server=localhost;Port=5432;UserId=xxxx;Password=xxxxx;Database=test;encoding=UNICODE";
Otherwise there will be Chinese characters appear as follows:
At the end of the connection string plus encoding = UNICODE
string connStr = "Server=localhost;Port=5432;UserId=xxxx;Password=xxxxx;Database=test;encoding=UNICODE";
Otherwise there will be Chinese characters appear as follows: