Quantcast
Channel: Eureka! » RFC 3986
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

PHP – URL Encode and Decode

Special characters in URL are encoded according to RFC 3986. You could get the encoded URL by rawurlencode(). <html> <head> <title>PHP - Encode and Decode URL</title>...

View Article


Image may be NSFW.
Clik here to view.

Javascript – Encode and decode URL like %20

When you want to create an url which contains special charaters like the whitespace, you need to convert it to %20 ascii value. In Javascript, you could simply make use of the built-in encodeURI() and...

View Article

Browsing latest articles
Browse All 2 View Live