From: Jon Leighton Date: 2011-09-07T07:59:49+09:00 Subject: [ruby-core:39309] [Ruby 1.9 - Bug #5287][Open] 1.9.3 - Interpolation in a string causes the string's encoding to be set to ASCII-8BIT Issue #5287 has been reported by Jon Leighton. ---------------------------------------- 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