From: Yui NARUSE Date: 2011-09-09T16:02:47+09:00 Subject: [ruby-core:39415] [Backport93 - Backport #5287][Closed] 1.9.3 - Interpolation in a string causes the string's encoding to be set to ASCII-8BIT Issue #5287 has been updated by Yui NARUSE. Status changed from Assigned to Closed Backported in r33236. ---------------------------------------- Backport #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: Closed Priority: High Assignee: Yui NARUSE Category: Target version: 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