#1268: force_encoding on NSStrings with Net::HTTP -----------------------------------+---------------------------------------- Reporter: eric@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: I had a quick look and realized that NSString#dup returns a NSString copy, therefore s.dup.force_encoding(...) will not work on NSStrings. I changed NSString#dup to return a RubyString in https://github.com/MacRuby/MacRuby/commit/3e200e8341a17797c8af79d7b781372a27... and this should fix the problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/1268#comment:4> MacRuby <http://macruby.org/>