twitter共享按钮中的问号

twitter共享按钮中的问号,twitter,share,social,Twitter,Share,Social,有人知道twitter共享按钮的文本中是否不允许使用问号吗?我有下面的代码,当我点击共享,弹出按钮出现时,消息停止在“谁是你最喜欢的候选人”。它读课文时没有超过问号 <?php $text = "Who's your favorite candidate ? This is another message";?> <a href="https://twitter.com/share?text=<?php echo $text; ?>&url=<?ph

有人知道twitter共享按钮的文本中是否不允许使用问号吗?我有下面的代码,当我点击共享,弹出按钮出现时,消息停止在“谁是你最喜欢的候选人”。它读课文时没有超过问号

<?php
 $text = "Who's your favorite candidate ? This is another message";?>
<a href="https://twitter.com/share?text=<?php echo $text; ?>&url=<?php echo $decoded_url; ?>&hashtags=contesthashtag" class="twitter-share-button" data-lang="<?php echo $lang; ?>" data-hashtags="contesthashtag" data-url="<?php echo $fanpage_url; ?>" data-text="<?php echo $text; ?>">Click here to share on Twitter</a>

在将文本作为链接放置之前,需要对其进行URL编码

<?php
$text = urlencode("Who's your favorite candidate ? This is another message");
?>

在添加到链接之前,您不需要对
$text
进行URL编码吗?所以,试试类似于