I was wondering what is the correct way to encode tweets before sending them to twitter? I am using PHP and I’ve tried multiple ways…
Here they are :
- just utf8_encode
- just urlencode
- just rawurlencode
- utf8_encode + rawurlencode
- utf8_encode + urlencode
And when I try to post " ’ " I always end up with something like this " ’ "