encode info