From: mare Date: 2007-06-27T05:53:59+09:00 Subject: Encoding of strings received from db I swear I searched this forum and couldn't find the solution! Anyway, the problem: I have a db (PostgreSQL) with data encoded in utf-8. I want to check this data, so I hoped to create a script to assert the values found there. The problem is they do not match, since the strings obtained from db are not utf-8. I tried with iconv, but the resulted strings were even messier. I'm using 'postgres' gem to connect to the db. Any solutions? -- Posted via http://www.ruby-forum.com/.