>Encore will fail if the target has not selected a move since switching in; if the target tried and failed to use a move this turn (due to sleep, paralysis, recharging, etc) before being targeted with Encore; if the affected move is Transform, Mimic, Sketch, Mirror Move, Encore, or Struggle; if the target does not know the affected move; or if the affected move has zero PP remaining.
Source