Hello Greg!
Thanks for the reply.
On Sat, Apr 19, 2014 at 09:12:10PM -0000, Greg Sabino Mullane wrote:
>
> > statements, but the results of SELECT statements are now ISO-8859 8 bit
> > characters.
>
> Hi. It's hard to say without more data. Setting client_encoding to UTF-8
> is a great first step. What makes you think the strings are returned
> as ISO-8859? Can you show us a test script and its output, or better yet,
> a self-contained test script we can run?
I have created a minimal example. I have created a new database TEST
with a single table with a single row that contains German special
characters using UTF-8. I used Emacs and the shell package to make a
transcript as to how I did this; see attached file "create".
I have made a dump of this database and have attached it as test.db.
$ file test.db
yields
UTF-8 Unicode text.
Using the binary editor bvi also indicates that these are two byte encodings.
I then created a minimal perl script that reads from this table and
writes to STDOUT. I have attached this script as well;
test.pl.
Redirecting the output fro
test.pl to a file and then using the file
binary again, one gets
$ ISO-8859 text, with no line terminators
The bvi indicates single byte German national characters.
Again, I'd be very grateful for any pointers on this. I suspect that my
configuration here could be responsible as obviously nobody else has
squealed. I changed to UTF-8 only about a year ago, and perhaps I
missed something. Yet for the life of me I know not what. As I said in
my original post, things got broken with DBD version 3.0.
What could have changed with 3.0 that could possibly have caused this?
Cheers,
Mike Dowling
PS
During the week I have no access to my email; only from Fridays to
Sundays, so my responses may be slow.