-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

>> At this point, all we care about is if we are in utf8 mode, or
>> byte soup mode. If the former, we assume everything coming back
>> from the database is UTF-8 and mark it as such in the Perl strings.
>
> Just to clarify, when you say "everything" here, I assume you mean 
> everything except data in a BYTEA column, right?

Correct - the bytea data comes back in an escaped form, and then 
we run dequote on it, but we explicitly do NOT set the resulting 
string as utf8. All the other dequote functions *will* set it 
as needed, however (either by looking at the global var or 
seeing if the string is already set that way, I haven't got 
to that part yet).

- -- 
Greg Sabino Mullane g...@turnstep.com
PGP Key: 0x14964AC8 201102082135
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAk1R/YEACgkQvJuQZxSWSsgnYACfWbAjCJLhRNoC9oLJ8mmxV3Z3
UhsAniUTFWRQp0M3No1drCy9+9Fi5HOS
=FdJY
-----END PGP SIGNATURE-----


Reply via email to