These are chat archives for ged/ruby-pg

8th
Jun 2016
Michael Granger
@ged
Jun 08 2016 18:47
In case Benjamin comes back: it'd help to dump the string you're sending, and how you're sending it. Ruby says that sequence isn't valid UTF-8, so at least that's not in question:
[1] pry(main)> str = "\xe7\x75\x2c"
=> "\xE7u,"
[2] pry(main)> str.encoding
=> #<Encoding:UTF-8>
[3] pry(main)> str.valid_encoding?
=> false