Join GitHub today
fix: use UTF-8 instead of US-ASCII for initial encoding #398
added a commit
this pull request
Oct 14, 2015
I have something to say about this commit.
org.postgresql.util.PSQLException: ошибка при попытке подсоединения.
The problem not solved even if we explicitly set the charset for connection parameter.
The environments settings was Russian_CP1251.
Do not take as rudeness! English is not my native language.
Something like that.
It's tough and error-prone operations to find encoding (more statistical predictions than plain rules). For example ANSI and OEM ecnodings will accept any sequence of bytes without worying about gobbledigook in result string. UTF-8 will accept message from any server settings if only english letters appears, but will be unable to read if sequence of bytes appeared to be broken multibyte sequence for symbol.