From: Bhay Zone Date: 2010-09-28T02:38:20+09:00 Subject: Re: Encoding problems .. ruby 1.9.2 Caleb, Brian - Thank you for your replies. The source of this data is a bug tracking tool known as GNATS. Now this tool also comes with a client which provides a command line util known as query-pr to query GNATS. The output of query-pr is delimited text. If you run query-pr from the linux shell, it prints the output on the screen. I invoke query-pr from my ruby program as follows (note the opening and closing (``) characters. result=`query-pr --expr 'Status="closed"'` # parse the result and take appropriate action. I am not very sure, but my guess is that the GNATS client uses TCP sockets to interface with the GNATS DB. Thanks for pointing out the redundancy, i'll fix that in my code. Right now I have "# coding: utf-8" as the first line in the ruby file. I found that while trying to figure out this problem and hoped it would make magic ... but well ... :-( I'll also try out the "# coding: binary" to see if that works for my case. I'm not sure if going back to ruby 1.8.7 is an option .. will keep that as a last option. -- Posted via http://www.ruby-forum.com/.