Why do computers sometimes change special characters like “&” into “&” or “ ”

184 views

Why do computers sometimes change special characters like “&” into “&” or “ ”

In: 77

9 Answers

Anonymous 0 Comments

There are certain characters such as / & $ # that are used as special characters in programming languages. Sometimes when those characters are used in a text entered by users it can have unintended consequences and they can be interpreted as commands (malicious users can perform what is called an injection attack). Internally programs mark or reencode these special characters to distinguish text from actual commands, this is specially true for text based languages such as html. Things do not always work as intended and these reencoded characters sometimes are shown to the final user.

You are viewing 1 out of 9 answers, click here to view all answers.