使用PHP将注册商标符号/版权符号插入MySQL [英] Inserting Registered Trademark Symbol/Copyright Symbol into MySQL with PHP

查看:488
本文介绍了使用PHP将注册商标符号/版权符号插入MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难理解如何使用php在我的mySQL数据库中插入注册商标sybol和版权符号。



当我插入正常字符

解决方案

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

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

这篇关于使用PHP将注册商标符号/版权符号插入MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆