What is the Difference between encodeURI and encodeURIComponent

preview_player
Показать описание
This video explains the difference between the encodeURI method and the encodeURIComponent method and their practical applications.
Also discussed are the decodeURI and the decodeURIComponent methods.

Рекомендации по теме
Комментарии
Автор

I missed this one when it was released!!!
Very very useful!!!! Perfect explanation!!!
Thank you very much.
And as always thanks for teaching!!

jeanmarcpourchel
Автор

Hi guy, in a world where Tech Tutorials have incomprehensible Hindi accents or native English speakers that sound like they're bored out of their minds explaining stuff, I ask you to please, please continue producing more content. Love your voice and your attitude. I don't know why your channel isn't bigger.


Obviously I've just found your channel, and I'm sorry if you've already done a tutorial on it, but I would love a video on REAL form validation with Javascript and RegEx.


Not the Fischer Price version for babies they teach you in IT courses, I mean the real ones where the RegEx expressions have like four lines of hieroglyphs. with RegEx that checks Emails, Passwords that require Uppercase and numbers, the whole Shebang.


Stay awesome, mate.

Venezuelangel
Автор

Very informative ... Learnt something new

barungh
Автор

so bad.. I tot i could use encodeURL to dont encode "|" pipe, i need to send this like that, instead of encoded format, is there any way that could give me this solution?

arcadan
Автор

what is the purpose of encoding? is it to hide path to the api from users?

jimshtepa
Автор

Thanks for sharing! what is a use case that we may need to use these methods ? I understand that they encode /decode the url, but why would we want to do so ?

theartist
Автор

nice great video. wondering why angular router.navigate['=?/'] will convert to '%...'. Angular must be using encodeuricomponent by default. any inputs?

OmgTruth
Автор

Javascript patterns video upload it sir.

abiakhil