Actionscript problems with social share encoding

Posted by Rittmeyer on Stack Overflow See other posts from Stack Overflow or by Rittmeyer
Published on 2010-04-08T18:32:18Z Indexed on 2010/04/09 0:53 UTC
Read the original article Hit count: 296

Hi,

I'm trying to make some "social share" buttons at my site, but the urls I generate just don't get decoded by this services.

One example, for twitter:

private function twitter(e:Event):void {
  var message:String = "Message with special chars âõáà";
  var url:String = "http://www.twitter.com/home?status=";
  var link:URLRequest = new URLRequest( url + escape(message) );
}

But when twitter opens up, the message is:

Message with special chars %E2%F5%E1%E0

Something similar is happening with Facebook and Orkut (but these two hide the special chars).

Someone know why is this happening?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about social-networking