Re: plperlu problem with utf8

David Fetter <david@fetter.org>

From: David Fetter <david@fetter.org>
To: "David E. Wheeler" <david@kineticode.com>
Cc: Alex Hunsaker <badalex@gmail.com>, Oleg Bartunov <oleg@sai.msu.su>, Andrew Dunstan <andrew@dunslane.net>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2010-12-17T15:30:52Z
Lists: pgsql-hackers
On Thu, Dec 16, 2010 at 07:24:46PM -0800, David Wheeler wrote:
> On Dec 16, 2010, at 6:39 PM, Alex Hunsaker wrote:
> 
> > Grr that should error out with "Invalid server encoding", or worst
> > case should return a length of 3 (it utf8 encoded 128 into 2 bytes
> > instead of leaving it as 1).  In this case the 333 causes perl
> > store it internally as utf8.
> 
> Well with SQL_ASCII anything goes, no?

Anything except a byte that's all 0s :(

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate