upd encoding