In article <48cddb5533ad_8725cd9524342 / redmine.ruby-lang.org>,
  Michael Selig <redmine / ruby-lang.org> writes:

> UTF-16 & UTF-32 (and maybe other non-ascii compatible encodings) don't seem to be work as Regexp patterns.
>
> Regexp.new("abc".encode("UTF-16BE"))
> ==> EncodingCompatibilityError: incompatible character encodings: US-ASCII and UTF-16BE

% ruby -ve 'p Regexp.new("abc".encode("UTF-16BE")) =~ "abc".encode("UTF-16BE")'
ruby 1.9.0 (2008-09-15 revision 19356) [i686-linux]
0
-- 
Tanaka Akira