Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Confusing about Encode/Decode and Quote/Unqote String Object

Sophos84Sophos84 Members Posts: 24 ✭✭

Hi,

Iam confused about the Encode/Decode and Quote/Unqote methods of the String class. For what are these methods? In wich context do Iam need them? I have read the documentation but they are insufficient for me. Has anyone a better explanation for me?

Tagged:

Best Answer

Answers

  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,714 Plex Ninja

    Encode/Decode

    If you are about to construct an url, that contains extended characters, like æøå, then encode it, and you can use it in an url
    Decode is the reverse

    Quote/Unqote

    Same as above, but this time for characters that are treated special in an url, like & and ?

    See this:
    w3schools.com/tags/ref_urlencode.asp

    /T

Sign In or Register to comment.