edit encoding