>>>>> In [ruby-talk : No.53493] 
>>>>>	Alan Chen <alan / digikata.com> wrote:
> mailto = URI.new( 'mailto:user / domain.com?subject=test%20(@test=10)
>
> Are '@' symbols allowed in uri's in this context or do they need to be
> escaped?

'@' is OK.  But '=' cannot be put in hvalue.  I think that 'subject:
test (@test=10)' should be written as 'subject=test%20(@test%3D10)' in
URI.

> /usr/lib/ruby/1.6/uri/common.rb:230:in `unescape': private method `gsub' called for nil (NameError)
> 	from /usr/lib/ruby/1.6/uri/mailto.rb:184:in `to_mailtext'

It is bug of uri/mailto.rb.  'URI.parse' should raise
InvalidComponentError for the URI.

-- 
akira yamada