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

  • SEARCH
  • Home
  • 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 7609891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:17:13+00:00 2026-05-31T01:17:13+00:00

I am developing an application in titanium using Javascript. I need an open source

  • 0

I am developing an application in titanium using Javascript. I need an open source implementation of encodeURIComponent in Javascript.

Can anybody guide me or show me some implementation?

  • 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. Editorial Team
    Editorial Team
    2026-05-31T01:17:14+00:00Added an answer on May 31, 2026 at 1:17 am

    The specification for this function is in 15.1.3.4.


    Modern versions (2018) of V8 implement it in C++. See src/uri.h:

    // ES6 section 18.2.6.5 encodeURIComponenet (uriComponent)
    static MaybeHandle<String> EncodeUriComponent(Isolate* isolate,
                                                  Handle<String> component) {
    

    which calls into Encode defined in uri.cc.


    Older versions of V8 implemented it in JavaScript and distributed under the BSD license. See line 359 of src/uri.js.

    // ECMA-262 - 15.1.3.4
    function URIEncodeComponent(component) {
      var unescapePredicate = function(cc) {
        if (isAlphaNumeric(cc)) return true;
        // !
        if (cc == 33) return true;
        // '()*
        if (39 <= cc && cc <= 42) return true;
        // -.
        if (45 <= cc && cc <= 46) return true;
        // _
        if (cc == 95) return true;
        // ~
        if (cc == 126) return true;
    
        return false;
      };
    
      var string = ToString(component);
      return Encode(string, unescapePredicate);
    }
    

    It’s not called encodeURIComponent there, but this code in the same file, esablishes the mapping:

    InstallFunctions(global, DONT_ENUM, $Array(
        "escape", URIEscape,
        "unescape", URIUnescape,
        "decodeURI", URIDecode,
        "decodeURIComponent", URIDecodeComponent,
        "encodeURI", URIEncode,
        "encodeURIComponent", URIEncodeComponent
      ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using titanium for developing Android application. I want to delete some data
I am developing an application using titanium mobile. On the simulator, the app works
I'm developing application in WPF but some components are written using WinForms. I wan't
I am developing application application using C++ VS 2008. Now I need to either
Hi I am developing Android application using Titanium.I want to change value of particular
I am using Titanium appcelerator for developing my android application, more over i am
What is difference in developing applications using .Net Framework, Asp.net and developing application in
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I am developing application using phonegap in eclipse for android .I have created folder

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.