It appears to be a bug within Apple's -stringByAddingPercent EscapesUsingEncoding:NSUTF8StringEncoding... solution here: http://simonwoodside.com/weblog/2009/4/22/how_to_really_url_encode/
Now all working fine. Thanks for the responses. -- Ron On May 28, 7:24 am, Sean Heber <s...@spiffytech.com> wrote: > This is OT for this list, but you need to use NSString's > -stringByAddingPercentEscapesUsingEncoding: method (or similar) to encode > characters correctly for URLs. > > l8r > Sean > > On May 27, 2011, at 9:10 PM, R wrote: > > > > > I'm using cocoa and NSUTF8StringEncoding. When I post a sentence > > that contains the ampersand (&), all text that follows is removed from > > the resulting tweet. > > > How should I deal with the "&" within a sentence (not URL) of a post? > > > Thanks -- Ron > > > -- > > 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:https://groups.google.com/forum/#!forum/twitter-development-talk -- 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: https://groups.google.com/forum/#!forum/twitter-development-talk