From: botp Date: 2010-04-19T17:01:28+09:00 Subject: Re: iconv transfer code On Mon, Apr 19, 2010 at 3:42 PM, Brian Candler wrote: > ... File.open("myfile.ext","w:UTF-8") { |f| f.puts str} > > will attempt to re-encode str from its current encoding to UTF-8, and > may raise an exception if it cannot do so. good > So if you want to write programs which don't crash, the first is > arguably better. we disagree there but what do you mean by "crash"? best regards -botp