new post encode