wordpress用随机字符替换单引号

我在wordpress网站上有问题

当我尝试在帖子中使用单引号时, 当我在帖子” Should n’t”中撰写时, 它们正在将其转换为其他字符, 看起来像是”Shouldnât”

我尝试将其添加到function.php但仍然是同样的问题

<?php    
remove_filter(‘the_content’, ‘wptexturize’);
?>

我也试图将整个数据库转换为utf8, 但是同样的问题

ALTER DATABASE databasename CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;

#1


你是在编写文本还是在复制/粘贴文本?我发现有时, 根据我复制文本的来源, 如果我将文本复制并粘贴到WordPress编辑器中, 它将显示有趣的字符。如果发生这种情况, 一种补救方法是手动键入所有内容。

来源:

https://www.srcmini02.com/64476.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41357.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?