Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Trademark(TM) in ISO-8859-1 encoding?

Tags:

asp.net

I have to use trademark(TM) in ISO-8859-1 .

I used following code use but it is not working.

&#153
™
<sup>TM</sup>

Could any one suggest me?

like image 658
Pankaj Pareek Avatar asked Oct 26 '25 23:10

Pankaj Pareek


2 Answers

You can't, in terms of a unicode character. ISO-Latin-1 doesn't contain the trademark character.

However, you can use &trade; which is the HTML entity for the trademark symbol, I believe. (That certainly used to work - whether it's valid HTML 5 etc I'm not sure.) Assuming it's still valid, I'd say it's preferable to use this approach anyway, instead of relying on a specific encoding's representation of the Unicode character. It's clearer to read, for one thing.

(The equivalent for ® is &reg;, by the way.)

like image 78
Jon Skeet Avatar answered Oct 28 '25 18:10

Jon Skeet


Assuming you mean in HTML, you can use &trade;, which should work with any encoding.

like image 43
hammar Avatar answered Oct 28 '25 18:10

hammar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!