- [Instructor] Now in the URL string,…there are certain characters that have special meanings…like colons, forward and back slashes, commas and periods…and you can use these characters after the question mark,…however, if you do run into issues…where the variables are not being sent,…the next thing you'll want to try…is encoding some of these special characters.…Now when we talk about encoding characters,…we're talking about using the Unicode specification…for each of these individual characters.…So a comma, for example,…is specified as %2C and a period is %2E.…
So we're going to replace the commas and the periods…with their Unicode equivalence.…So in the URL we have currently in our CSS file,…we're going to replace the values for the variable of base…and the variable of icon using these encode characters.…So back in our HTML file, let's find our CSS rule here,…which is controlling the hover state of the Twitter graphic.…So let's find our URL for back on image.…Let's come down here and here's our base variable…
Share this video
Embed this video
Video: Encoding special characters in a URL