You have a data sheet or at least a part number for the encoders? How many lines per revolution?
Typically A+, A- etc are the differential pairs for each channel. You can usually ground the - and just measure the + single ended for each.
Z is typically the index track, so that should output one pulse per rev.
You typically also have to supply your own power for incremental quad encoders.