You can prevent viral encephalitis by avoiding the viruses that lead to it, eg genital herpes; immunizing yourself and your children against viruses that can cause encephalitis, eg chickenpox, measles(rubeola), mumps and German measles(rubella).You should take the necessary measures to avoid mosquito bites, eg dressing appropriately, using mosquito repellents or sleeping under a treated net.
Attribution: Avallain