Special Characters
Short answer
Browsers can read special characters in a URL in different ways, so encode them when you add text to an image. Write a space as %20, a slash as %2F, an ampersand as %26 and the © sign as %A9. The table below lists the codes for the characters you'll need most.
After reading this you will know
- Why special characters in image URLs need encoding
- The codes for the most common characters
Different browsers render URLs differently and sometimes unpredictably.
If you’re adding special characters to your URL (perhaps to create a text overlay), you may need to use the ASCII equivalent:
| ASCII Character | URL-encoding |
|---|---|
| space | %20 |
| / | %2F |
| ! | %21 |
| ” | %22 |
| # | %23 |
| $ | %24 |
| % | %25 |
| & | %26 |
| ’ | %27 |
| ( | %28 |
| ) | %29 |
| * | %2A |
| + | %2B |
| , | %2C |
| © | %A9 |
| More… | More HTML character codes |
Replace each special character in your text with its URL encoding, and the text shows correctly on the image.
