[twitter-dev] Re: why are there tweets longer that 140 characters?

2011-08-05 Thread Jason Toy
I am counting unicode characters. On Aug 4, 4:58 pm, Jeremy Dunck jdu...@gmail.com wrote: Characters are not necessarily a single byte.  Which are you counting? On Thu, Aug 4, 2011 at 5:05 PM, Jason Toy jason...@gmail.com wrote: I see some tweets going through my system that are over

[twitter-dev] Re: why are there tweets longer that 140 characters?

2011-08-05 Thread Jason Toy
I see how to fix it,I have to html unescape the tweet, is it safe to html unescape all tweets ? On Aug 4, 4:58 pm, Jeremy Dunck jdu...@gmail.com wrote: Characters are not necessarily a single byte.  Which are you counting? On Thu, Aug 4, 2011 at 5:05 PM, Jason Toy jason...@gmail.com

Re: [twitter-dev] Re: why are there tweets longer that 140 characters?

2011-08-05 Thread Taylor Singletary
If you're never going to show a tweet in a HTML context, it would be safe to unescape the entitized characters. Tweets are often fed directly from an API call to an HTML context, which is why we protect against malicious HTML by escaping certain tags. Storing as received is likely the best bet.