Decode with right encoding