Npgsql is the .NET data provider for PostgreSQL.
roji Make error decoding use the configured encoding
Previously, decoding errors always used with UTF8 encoding, with
fallback to ?. As a result, if PostgreSQL was configured with a
non-UTF8 lc_messages, some error messages would come out garbled.

We already have an Encoding connstring param, which wasn't being
used for error decoding - errors now use this encoding, allowing
users to configure how errors are decoded.

Also made all error fields decode with relaxed encodings, so that
we never get exceptions while decoding errors.

Fixes #1582
Latest commit 16fa9fb Dec 10, 2018

Npgsql - the .NET data provider for PostgreSQL

stable unstable next patch appveyor travis gitter

What is Npgsql?

Npgsql is a .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.

For any additional information, please visit the Npgsql website at