I've been using a tweet linkify() function that I wrote myself a
couple of years ago, and then rewrote to take advantage of entities
when they arrived. It works well about 98% of the time, but it still
chokes on some UTF8 characters, which causes URLs to be applied with
an incorrect offset of a few characters. Does anyone have a really
solid PHP entity linkifier set of code they recommend? Or is there one
hidden in the API that I never noticed?

BTW, did anyone notice that during Obama's townhall there was a tweet
that was displayed on the big screen that had an apostrophe
incorrectly garbled by UTF8? I loved it when @jack blamed it on the
tweet's author, saying something like "He entered it wrong".

Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 

Reply via email to