By quick researching on the web, I found that pull up resistors for a rotary encoder (which type?) should be above 250 o and below 10 ko but 1ko is correct.
Assumed that is correct, there is still a problem I could not tackle because even with a validated code the count var remains to zero and also with a minimalist shematic without the capacitor. With a voltmeter, I found that, very scarcely, the pins have LOW values. They remain often on HIGH
(Arduino Playground - RotaryEncoders)