In the middle of 3 pins' side is COM port connect to GND .
And other pins (A and B same side of GND) separate pull to +5v via 10k ohm resisters .
Connect the A and B directly to Arduino IO pins.
Arduino usage: http://www.arduino.cc/playground/Main/RotaryEncoders