Twitter API wrongly encodes ampersand in Tweet content


#1

Hi,

I’ve just noticed that & is not correctly encoded in a tweet when retrieved from the API. This holds for both version 1 and version 1.1 .

Example (https://twitter.com/Amartens92/status/266515109017440256 ) :

Laatste lesje digitale communicatie & Social media! We sluiten af met een presentatie van pyth @MinorDigiCom

Is retrieved so (both in the search v1.1 , search v1 and in statuses: http://api.twitter.com/1/statuses/show/266515109017440256.json ):

text: “Laatste lesje digitale communicatie & Social media! We sluiten af met een presentatie van pyth @MinorDigiCom”,

Note the & in the JSON text output.

Cheers,
Boaz


#2

The tweet text is intentionally optimized for secure display in the most common rendering scenarios.


#4