Entities not returning url structure, when the url has special characters


#1

Normally, the entities structure returns this information if the tweet has an url in it:

[urls] => Array
(
[0] => stdClass Object
(
[url] => http://t.co/AKNMYr3R
[expanded_url] => http://bit.ly/Qqa3gz
[display_url] => bit.ly/Qqa3gz
[indices] => Array
(
[0] => 92
[1] => 112
)

                            )

                    )

Now check out the outcome for this other tweet:

[urls] => Array
(
)

In the case of this specific tweet, nothing happened, probably because the url has a special spanish character in it. Is this bug going to be fixed anytime soon?


#2

That URL shouldn’t have the special character in it, it should be escaped according to the HTTP specification… it’s not being determined as a URL due to its invalidity.