注册 登录
编程论坛 PHP技术论坛

php+mysql 我修改内容 吧内容粘贴进去 粘贴的中文能保存上 英文为什么保存不上 输入的英文就可以保存上 数据库字段编码是utf8

guang2356447 发布于 2015-07-30 21:11, 2113 次点击
php+mysql  我修改内容   吧内容粘贴进去   粘贴的中文能保存上  英文为什么保存不上    输入的英文就可以保存上    数据库字段编码是utf8

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require("ty2connhty.php")?>
<?php
mysql_query('SET NAMES UTF8');
?>
<?php
$id=$_POST['id'];
$bt=$_POST['bt'];
//$act=='subok' && die("提交的内容是:<br>".htmlspecialchars($gently_editor));
$exec="update jbxx set id='$id',bt='$bt' where id=$id";
mysql_query($exec);
mysql_close();
?>
<script language="javascript">alert('修改成功!<?php echo $id?>');location.href='bjgsjj.php?id=<?php echo $id?>'</script>
2 回复
#2
guang23564472015-07-30 21:19
要粘贴的内容
FINIC Trading&Consulting Company belongs to Italy S.E.S. Co. Ltd., co-founded by Mr. Nicola Bernocchi together with two chinese young entrepreneurs, becomes a foreign strategic branch of BERNOCCHI'S Industry Family, who was started his industry from 1865 in Italy.
 
FINIC aims to provide a full range of consulting services and trading business for Italian&Chinese governments&institutions and also for every Italian&Chinese enterprises through its familial relationships, professional knowledge, international collaboration experiences and a large accumulation of resources, offer a true meaning of the "360 degrees" Butler service to all of the business partners and customers.

我吧红字符号去掉 就可以粘贴进去啦   为什么不让用这个符号那 '
#3
guang23564472015-07-30 21:48
怎么保存单引号   读取单引号的问题吧
1