Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 134739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:40:04+00:00 2026-05-11T06:40:04+00:00

I am having trouble escaping special characters in as3. trace( escape(who are ü?) );

  • 0

I am having trouble escaping special characters in as3.

trace( escape('who are ü?') ); 

returns who%20are%20%uFFFD%3F

or

trace( encodeURIComponent('who are ü?') ); 

returns who%20are%20%EF%BF%BD%3F

while in javascript this

alert( encodeURIComponent('who are ü?') ); 

returns who%20are%20%C3%BC%3F

and

alert( escape('who are ü?') ); 

returns who%20are%20%FC%3F

Any suggestions how to get as3 to return escaped special characters as javascript is? Why is as3 apparently choking?

(here is a good reference: http://www.ultrashock.com/forums/actionscript/as3-escape-vs-as2-escape-122046.html )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:40:05+00:00Added an answer on May 11, 2026 at 6:40 am

    Looks like AS is escaping the string as UTF-16, while the Javascript example is escaping as UTF-8. escape doesn’t define how to deal with non-ascii characters, and so it’s been deprecated as of JavaScript 1.5. You should use the function encodeURIComponent instead, which is defined as escaping as UTF-8 – This should be consistent across different implementations. If you require the AS behaviour, I don’t think there is a native function in Javascript, but you can use the functions provided here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yes, you need the ASP.NET MVC Futures assembly, it's available… May 11, 2026 at 10:02 am
  • added an answer You need to expose the btnName member to other classes… May 11, 2026 at 10:02 am
  • added an answer It can make constructors simpler, especially for immutable types (which… May 11, 2026 at 10:02 am

Related Questions

I am having trouble with IE7. I have a header, which is an IMG.
I am having trouble integrating two products, one of which is mine and they
I am having trouble with my Visual Studio 2005 IntelliSense for some time now.
I am having trouble grabbing the values from the form once processed. I need
I am having trouble defining the content-type of an element (phonenumber) whilst at the
I am having trouble using the attribute XPath Selector in ElementTree, which I should
I am having trouble setting the path to jquery in an mvc app. In
I am having trouble understanding how the System Registry can help me convert a
I am having trouble getting my ASP.NET application to start an application. For example
I am having trouble deleting orphan nodes using JPA with the following mapping @OneToMany

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.