On Sep 13, 2008, at 11:55 PM, James Gray wrote:

> I tried to test with UTF-16 as well, since I think that's a good  
> edge case.  However, we don't seem to have a converter for that:
>
>  $ ruby_dev ~/Desktop/regexp_encoding.rb #<Encoding:US-ASCII>
>  #<Encoding:US-ASCII>
>  /Users/james/Desktop/regexp_encoding.rb:15:in `encode': code  
> converter not found (US-ASCII to UTF-16) (Encoding::NoConverter)
>  	from /Users/james/Desktop/regexp_encoding.rb:15:in `<main>'

This was my fault.  UTF-16 is not a valid encoding name.  Once I  
switched to UTF-16LE or UTF-16BE it worked fine.

James Edward Gray II