Encryption is to exchange data securely using various algorithm and techniques. Encoding is to only escape specific chars during transmission via internet. Its purpose is not for secure transmission but to pass data without it getting mis-interpreted.