learn io encoding