Based on this drawing for encoder diode are pointed for pins (contrary for buttons):

http://simhq.com/forum/files/usergals/2014/08/full-37484-85623-pins_common.png

A bit confuse what are row and what are column in the drawing - seems "to the next..." are inverted. smile