Add TM symbol in the subject of the email
email, html-email, ruby-on-rails-3
Solution
i don't know ruby, but generally, you would encode the subject like this :
=?utf-8?q?hello_world=E2=84=A2?=
=> this produces "hello world™"
=E2=84=A2 is the quoted printable representation of the trademark symbol in utf-8
see: http://en.wikipedia.org/wiki/MIME#Encoded-Word
Problem
I need to show TM symbol in the subject of an email. I am adding it in the body of the mail using `™` as we can send the email as text/html encoding. But, I need to add this in the subject line also. I guess this is not possible since we cannot use HTML in subject line of the email. But I want to make sure of that or maybe some other way of doing it. I am using Rails 3.