Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encodeURIComponent encoding lowercase letters to Uppercase

Status
Not open for further replies.

Vikas1701

Programmer
Joined
Jul 10, 2014
Messages
10
Location
IN
Hi,

I am facing a problem :

encodeURIComponent("@#$abc")is giving output as %40%23%24Abc.

after "$" letter is converted to uppercase.

Please suggest solution on this.


Thanks in advance,
Vikas
 
Hi

How did you get that ?

Gecko, Presto and WebKit browsers return "%40%23%24abc. Node.JS too :
Code:
[blue]master #[/blue] nodejs -e 'console.log(encodeURIComponent("@#$abc"))'
%40%23%24abc


Feherke.
feherke.ga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top