From: Jon Leighton Date: 2011-09-07T08:02:53+09:00 Subject: [ruby-core:39311] [Ruby 1.9 - Bug #5287] 1.9.3 - Interpolation in a string causes the string's encoding to be set to ASCII-8BIT Issue #5287 has been updated by Jon Leighton. To be clear about the version tested: $ ruby -v ruby 1.9.3dev (2011-09-05 revision 33190) [x86_64-linux] ---------------------------------------- Bug #5287: 1.9.3 - Interpolation in a string causes the string's encoding to be set to ASCII-8BIT http://redmine.ruby-lang.org/issues/5287 Author: Jon Leighton Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 1.9.3-head There appears to be a bug with the encoding of interpolated strings on 1.9.3. Here is a comparison of versions: 1.9.2 ----- ruby-1.9.2-p290 :001 > a = "" => "" ruby-1.9.2-p290 :002 > a.encoding => # ruby-1.9.2-p290 :003 > "#{a}".encoding => # 1.9.3-head ---------- ruby-1.9.3-head :004 > a = "" => "" ruby-1.9.3-head :005 > a.encoding => # ruby-1.9.3-head :006 > "#{a}".encoding => # ruby-head --------- ruby-head :003 > a = "" => "" ruby-head :004 > a.encoding => # ruby-head :005 > "#{a}".encoding => # -- http://redmine.ruby-lang.org