From: jobeicus@... (Joseph Benik) Date: 2001-08-16T15:33:23+09:00 Subject: [ruby-talk:19861] BUG(!) in unescapeHTML require 'cgi' txt=CGI::unescapeHTML(' ') results for me: /cygdrive/c/RUBY/lib/ruby/1.6/cgi.rb:302:in `unescapeHTML': undefined method `[]' for nil (NameError) from /cygdrive/c/RUBY/lib/ruby/1.6/cgi.rb:274:in `gsub' from /cygdrive/c/RUBY/lib/ruby/1.6/cgi.rb:274:in `unescapeHTML' from test.rb:3 logical fix is to add when /\Anbsp\z/ni then ' ' to the case statement on line 277, but this same error will crop up for any other ampersand case the statement is unprepared for... which seems like a flawed way of doing things. perhaps the logic around line 302 could be re-worked. Joe