[6.1.6 / PostgreSQL] Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75.

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Re: [6.1.6 / PostgreSQL] Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75.

Post by swierzbicki » Fri 11 Sep 2015 15:20

Here is what I've found so far :

I haven't called "FConnection.Connect" nor in my SetConnection method nor in any other methods used in my class. I'm sure that this caused all my problems and thing were later messed up, bringing us the cryptic "Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75" exception message !

By chance, I found that something was wrong with my table "productions_plateaux_details".
I have previously inserted thousand of records into this table. This table has an SERIAL field. Last ID was something like 5000 BUT the sequence function attached to it returned a currval value of 300... : as a result, each data inserted into this table failed with this error

Code: Select all

ERREUR: La valeur d'un clé dupliquée rompt la contrainte unique "productions_matieres_details_pkey"
BUT UniDAC throw this one

Code: Select all

"Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75" 
The right error message was raised when calling an initial "FConnection.Connect".

There is still a small issue now, UniDAC isn't able to display accentuated characters. This message is raised

Code: Select all

"ERREUR: La valeur d'un cl? dupliqu?e rompt la contrainte unique "productions_matieres_details_pkey""
instead of

Code: Select all

"ERREUR: La valeur d'un clé dupliquée rompt la contrainte unique "productions_matieres_details_pkey""

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: [6.1.6 / PostgreSQL] Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75.

Post by azyk » Thu 10 Dec 2015 09:34

We have fixed this problem. This fix will be included in the next UniDAC build.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Re: [6.1.6 / PostgreSQL] Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75.

Post by swierzbicki » Thu 10 Dec 2015 15:46

Thank you.

Will new version released tomorrow ?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: [6.1.6 / PostgreSQL] Invalid byte sequence for encoding "UTF8": 0xe9 0x71 0x75.

Post by azyk » Fri 11 Dec 2015 09:10

UniDAC release is planned for the next week.

Post Reply