Special characters in twitter web intent url

webintent

#1

How do you encode special characters (chinese) in the web intent url? See example below:

https://twitter.com/intent/tweet?text=testingmessage&url=https://www.google.com/search?q=枫

This causes a tweet to be posted as follows (note that the special character isn’t part of the link, and the link itself is broken):

Am I encoding these characters incorrectly? Or is this broken?


#2

Appears to be an error, although it’s fairly difficult to determine where the end of a URL is. You can try using websites that allow you to “mask” the url as an alternative.


#3

Okay thanks.

Is there a way to report this as a bug? Or does this thread suffice?


#4

Double encoding the special character may be the most pragmatic solution. If something else comes to mind, I’ll let you know.


#5