Ok, the problem is your pin choices. User interrupts are 'hardwired' to only use arduino pin number 2 and 3 on a 328p based board. Interrupt0 = pin 2 and interrupt1 = pin 3.
So changes need are:
const int encoder0PinA = 2;
const int encoder0PinB = 3;
// encoder pin on interrupt 0 (pin 2)
attachInterrupt(0, DoEncoderA, CHANGE);
// encoder pin on interrupt 1 (pin 3)
attachInterrupt(1, DoEncoderB, CHANGE);