[odb-users] 22021: ERROR: invalid byte sequence for encoding
"UTF8": 0x93
Boris Kolpackov
boris at codesynthesis.com
Mon Jan 19 08:26:34 EST 2015
Hi Kenneth,
Kenneth Moses <kcm7 at case.edu> writes:
> I am running a PostgreSQL database and compiling ODB with gcc 4.9.2. The
> code compiles just fine. However, I receive the above error when attempting
> to persist an object. I have put a standard tracer within the transaction
> and the error occurs every time at the same line. The SQL line is an INSERT
> INTO command and does not appear to have any non-standard text in it. I
> have run the exact same code (it was pulled from a repository online) on
> several other machines and I do not receive the error.
Since this works on other PostgreSQL setups, my guess would be that the
default TEXT data type's character encoding is UTF-8 on the setup that
gives you the error while on the other machines it is something else
(e.g., ISO-8859-1).
Boris
More information about the odb-users
mailing list