Encode inventory