Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting Registered Trademark Symbol/Copyright Symbol into MySQL with PHP

I am having a hard time understanding how to insert the registered trademark sybol and copyright symbol to my mySQL database using php.

When I insert the normal character of the reistered trademark symbol, it returns some random values when I try to retrieve it.

like image 277
AnchovyLegend Avatar asked Jul 16 '12 15:07

AnchovyLegend


People also ask

How do I insert a copyright symbol?

Copyright and trademark symbols can be added by using a keyboard shortcut. For example: To insert the copyright symbol, press Ctrl+Alt+C. To insert the trademark symbol, press Ctrl+Alt+T.

How do I add a TM to a logo?

There is some flexibility as to how and where to use the TM, SM, or ® symbol. Typically, it is placed in the upper right-hand corner, in the lower right-hand corner, or level with the mark or logo itself—each is an acceptable way of displaying the relevant symbol.

How do I put the registered trademark symbol on my website?

Press Alt + 0153 to insert a trademark symbol: ™ Press Alt + 0174 to insert a registered mark symbol: ®


1 Answers

You can look into converting the copyright/trademark symbol from and into an HTMLEntity in order to ease data transfer to the database.

Reference: http://www.php.net/manual/en/function.htmlentities.php

Reference: http://www.php.net/manual/en/function.htmlspecialchars.php

© Copyright Symbol: ©

™ Trademark Symbol: ™

like image 178
Daniel Li Avatar answered Nov 07 '22 09:11

Daniel Li