On Wed, 12 Feb 2003, Dominic Mitchell wrote: > > David Wheeler wrote: > > On Tuesday, February 11, 2003, at 10:51 PM, Rudy Lippan wrote: > >> Known problems with patch: > >> > >> 1. Broke new pg_bool_tf attribute. > > > > > > Ah. Can be fixed, I assume? > > Should be easily. My pg_do_utf8 patch clashed with it. It's a really > minimal patch. > > Speaking of that, any chance of somebody having a look at it and > possibly applying it? (plug, plug)
Sure. I have not played much with UTF8 and locales, but the driver should support them to the best of its abilities. > <http://gborg.postgresql.org/pipermail/dbdpg-general/2003-January/000012.html> > Just did a quick look a the patch and the Pgsql docs. I need to do some more research, but what do you think about a set_client_encoding() function tells the db that you want UTF8. And DBD::Pg can just figure out the current client encoding by asking libpq. Depending on the overhead of caling PQclientEncoding(), it might be possible to call it after each execute and set the flag there. The question then arises is whether to set the flag on the sth or on the db -- Think about interleaved cursor fetches and things like that. > I should probably register it as a feature request at gborg, but I > couldn't see an button to do so... > That I don't know. -r
