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.
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.
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.
Press Alt + 0153 to insert a trademark symbol: ™ Press Alt + 0174 to insert a registered mark symbol: ®
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: ™
;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With