Encoding is the process of giving every speech-sound a letter to represent it. That enables you to write what you hear.
Encoding is essential for reading ease. When the letters on the page are not known by their speech sounds, the letters cannot be read.
The advantage of encoding is the ability to read words you have never seen before.