The published pinout in the manual is correct. If you want to be sure, you may probe the 8 metal wires that are on top of the RJ45 connector. The wire that is the closest from the 15-pin connector is pin 1. If you find the +5V and ground at the right place on the connector, but not on the encoder, the wiring may be wrong or there may be a bad connection inside the connector