From: Tanaka Akira Date: 2008-09-16T01:35:07+09:00 Subject: [ruby-core:18608] Re: [Bug #563] Regexp::escape is not Encoding Aware In article <48cd8919cbbbd_8685cd26fc916@redmine.ruby-lang.org>, James Gray writes: > Escaping an encoded String can damage the encoding: > >>> s = "+" > => "+" >>> s.encode!("UTF-16BE") > => "\x00+" >>> re = Regexp.escape(s) > => "\\+" Fixed. Thank you. -- anaka Akira