> It couldn't have. > > strip removes newlines, because they are whitespace. > On the other hand, neither chomp nor strip removes "\240". > >>> "foo \n".strip > => "foo" >>> ("foo " + 0240.chr).chomp > => "foo \240" This is why I shouldn't code at 3:30am! I had used chop instead, which of course truncated the text in rare cases. How can I remove \240? -- Posted via http://www.ruby-forum.com/.