encode field loc