Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 94
  • Last Modified:

encodeURIComponent adds % characters

Hi;

I have a code in which i use encodeURIComponent and it adds % characters to the file i generated. E.g. for space %20 is added. How can I avoid this?

Regards.
0
jazzIIIlove
Asked:
jazzIIIlove
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
How can I avoid this?

Don't use encodeURIComponent, maybe you don't need it... or the process saving your data should decode first
0
 
jazzIIIloveAuthor Commented:
Hi,

I haveto use it against xss.
0
 
leakim971PluritechnicianCommented:
decodeURIComponent
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now