Wrong encoding for binary result format

Issue #116 duplicate
Lars Kanis created an issue

{{{ d = c.exec("SELECT $1::bytea", [value:"a\0b",format:1], 1).getvalue(0, 0) => "a\u0000b" d.encoding => #<Encoding:UTF-8> }}} Should be #<Encoding:ASCII-8BIT>

Comments (1)

  1. Log in to comment