dockyard/postgres_ext — pull request #30 by skandragon (2012-10-29 17:51:02+00:00)
Title: UTF-8 strings in string arrays are not returned as UTF-8 encoded strings

This has some flaws:

1. It will blindly force UTF-8 encoding on all strings. This could break things if people are using strings to hold binary data, which they should not be doing.
2. It assumes the only database encoding in use is UTF-8, and does not respect any encodings configured.

I don't (yet) know how to fix (2) but will look into it. I sort of hoped I could just steal the options[:encoding] value...

In any case, this now makes arrays UTF-8 clean from what I can tell.