From: Maxim Zhukov Date: 2009-02-09T05:07:55+09:00 Subject: How to capture standart output to variable? How to capture output of this code to variable to send it to iconv? (Just like ob_start() in PHP) # ??? p ["utf-8 string",[123,321],"another string"] # ??? puts Iconv.conv("866","UTF-8",captured_output) # because of windows console -- Posted via http://www.ruby-forum.com/.