Being very young or very old, being in an environment where there is a higher risk of exposure to mosquitoes, not being vaccinated against common childhood infections like measles, mumps and rubella, having a compromised immune system and traveling to areas where viral encephalitis is endemic are a few risk factors for encephalitis.