且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHP将注册商标符号/版权符号插入MySQL

更新时间:2023-12-01 13:38:04

您可以考虑转换版权/商标

参考 http://www.php.net/manual/en/function.htmlentities.php

参考 http ://www.php.net/manual/en/function.htmlspecialchars.php



©版权符号:&# 169 ;



™商标符号:&#153 ;


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.

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: ™