Rendering is the process of producing the pixels of an image from a higher-level description of its components (geometry, viewpoint, texture and lighting). Encoding is taking that series of images (which in "raw" form would be huge) and compressing it into a smaller file.
(parts of this post were shamlessly cribbed from Wikipedia)