in reply to Re: DBD::Oracle uses Perl's internal representation of strings
in thread DBD::Oracle uses Perl's internal representation of strings
For instance, in the case of $q1, Perl is using a single octet for the character 'ä'. In the second case Perl is using two octets for that character, and the 'utf8' flag is on. If DBD::Oracle was looking at the 'utf8' flag, it really should produce the same results in both cases. Since it is not, I can only conclude that it is ignoring the utf8 flag.
Consequently, I am not sure that any setting of NLS_LANG will fix the problem. For instance, if NLS_LANG is set to 'utf-8', then DBD::Oracle will interpret $q1 incorrectly. On the other hand, if NLS_LANG is set to 'iso-8859-1', DBD::Oracle will interpret $q2 incorrectly.
I could be wrong about this. Using Encode::encode all the time is okay with me -- I just want to make sure that it is necessary.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::Oracle uses Perl's internal representation of strings
by mje (Curate) on Nov 07, 2007 at 17:46 UTC |