ALPS encoder, desoldered:
3 pins are for encoder, 2 pins for membrane push button switch, 2 big pins for strong mechanical contact with PCB.
From left to right: membrane switch (bottom part), static encoder part, rotary encoder part, frame (above), shaft (broken pin).
The pins are located on the upper side of the membrane and the encoder.
Starting from 6 o'clock, clockwise: there are 8 pins for phase A, 1 wide common (shortening) pin, and 8 pins for phase B.
The rotary part is made of 3 contacts, each shifted 120-degrees away.
This makes 24 phase shifted contacts per rotation.
It's an ingenious piece of Japanese precision mechanics.
Characteristics: insulated shaft, high collar, 24 pulses, no detent, push button
Dimensions:
LM1=20 mm
l1 = 7 mm (small L, one)
It looks like EC12E types, with 2 more pins for the push-on button.
http://www.alps.com/products/e/pdfcatalog_list.htmlI'm unable to find the correct type with push button.
Does anyone see it in the datasheets?