The prognosis of encephalitis depends on the cause of the disease, the severity of the condition, the age of the patient and the strength of the immune system.