Error tweeting an URL


#1

Please,

I’m trying to implement twitter share on my website and I’m having some troubles.
I’m trying to tweet this link: “http://filiticket.siteoficial.ws/ticket/search/?keyword=keysão” but when I go to see on twitter the link is broken because of “ã” character. The search must be “keysão”, I can’t ignore and use “keysao”.

Do you guys have some idea to help me?

tks


#2

You need to percent-encode UTF-8 strings in a URL for validity.

In this case, “?keyword=keysão” should be “?keyword=keys%C3%A3o”


#3