The pathogenesis of encephalitis