in reply to Malformed UTF-8 character error after fetching data from Postgresql
Very respectfully to you, stefby, “I’m not so sure that you’re correct on this.
When I read section 23.3.3 of this PostGres doc page, it states that automatic conversion between client and server datasets is provided, and UTF8<->WIN is a supported combination.
What I am suspicious of is that Perl is treating the data as UTF8, within Data::Dumper. It should be easy to query the database directly to be sure that the characters were stored (translated) correctly, and that the received characters are in CP1251. I suspect that Perl thinks that it’s dealing with UTF8.
Replies are listed 'Best First'. | |
---|---|
Re^2: Malformed UTF-8 character error after fetching data from Postgresql
by stefbv (Priest) on Jul 17, 2014 at 18:19 UTC | |
by nihiliath (Initiate) on Jul 18, 2014 at 08:04 UTC | |
by locked_user sundialsvc4 (Abbot) on Jul 17, 2014 at 22:08 UTC | |
by graff (Chancellor) on Jul 19, 2014 at 02:55 UTC |