title: escaping characters in as3 as javascript does
body: <p>I am having trouble escaping special characters in as3.</p>
  
  <pre><code>trace( escape("who are ü?") );
  </code></pre>
  
  <p>returns who%20are%20%uFFFD%3F</p>
  
  <p>or </p>
  
  <pre><code>trace( encodeURIComponent("who are ü?") );
  </code></pre>
  
  <p>returns who%20are%20%EF%BF%BD%3F</p>
  
  <p>while in javascript this</p>
  
  <pre><code>alert( encodeURIComponent("who are ü?") );
  </code></pre>
  
  <p>returns who%20are%20%C3%BC%3F</p>
  
  <p>and</p>
  
  <pre><code>alert( escape("who are ü?") );
  </code></pre>
  
  <p>returns who%20are%20%FC%3F</p>
  
  <p>Any suggestions how to get as3 to return escaped special characters as javascript is?  Why is as3 apparently choking?</p>
  
  <p>(here is a good reference: <a href="http://www.ultrashock.com/forums/actionscript/as3-escape-vs-as2-escape-122046.html" rel="nofollow noreferrer">http://www.ultrashock.com/forums/actionscript/as3-escape-vs-as2-escape-122046.html</a> )</p>