From: Brian Candler Date: 2009-04-08T19:53:04+09:00 Subject: [ruby-core:23158] Inconsistent behaviour of String#strip The following behaviour of String#strip seems inconsistent to me: irb(main):003:0> a = "\xa0".force_encoding("ISO-8859-1") => "���" irb(main):004:0> a.strip => "" irb(main):005:0> a = "a\xa0".force_encoding("ISO-8859-1") => "a���" irb(main):006:0> a.strip => "a���" This is with ruby 1.9.2dev (2009-04-07 trunk 23150) [i686-linux] I'm submitting here rather than redmine since I don't really understand what is the intended behaviour of String any more - so it could be my faulty understanding rather than an implementation bug.