Re: [twitter-dev] Trying to implement entities, and some indicies off
Thanks for letting us know about this. I've passed the example onto the engineers who are going to look into it. So we can track the issue could you open a ticket on our issue tracker: http://code.google.com/p/twitter-api/issues/list Thanks @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Dec 3, 2010 at 3:43 PM, GadgetDon gadget...@gmail.com wrote: I'm still learning the API, got my experimental site up and running using Abraham William's twitteroauth library. For some posts, though, the indicies are wrong, offset by a couple characters too high. For example, status 10716446405427200 has my highlighting the wrong characters - for amazon.com it's highlighting : Amazon.c. I suspect that there may be some special characters in the status text (maybe an emdash?) that json.decode is helpfully cleaning up for me, but that's just a guess. Anyone ever run into a problem like this and if so - any suggestions? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Trying to implement entities, and some indicies off
On Fri, Dec 03, 2010 at 03:43:15PM -0800, GadgetDon wrote: I'm still learning the API, got my experimental site up and running using Abraham William's twitteroauth library. For some posts, though, the indicies are wrong, offset by a couple characters too high. For example, status 10716446405427200 has my highlighting the wrong characters - for amazon.com it's highlighting : Amazon.c. I suspect that there may be some special characters in the status text (maybe an emdash?) that json.decode is helpfully cleaning up for me, but that's just a guess. Anyone ever run into a problem like this and if so - any suggestions? Just a guess: php mb_internal_encoding ('utf8'); php echo substr ($str, 69,79-69); : Amazon.c php echo mb_substr ($str, 69,79-69); Amazon.com Does it work for you? -- Martin R. Dapas -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk