Alright, so here's another mystery:
use DBI;
...
$ENV{NLS_LANG} = ""AMERICAN_AMERICA.WE8ISO8859P1";
$dbh = DBI->connect(...);
$c = chr(228);
print "result: ", select_scalar("SELECT 1 FROM DUAL WHERE '$c' =
chr(228)"), "\n";
The select_scalar subroutine merely returns the first column of the
first row of the query.
The above code emits:
result:
However, if I change NLS_LANG to "AMERICAN_AMERICA.US7ASCII", it emits:
result: 1
Is there another NLS_LANG setting I should use, or should I check my
versions of OCI, DBD::Oracle and perl? I think I'm running OCI version
8. My perl is 5.8.0.
Thanks,
ER