using Absolute Encoder

So i checked on the available Absolute Encoder, and noticed that the shaft is flat. how am i suppose to connect this to the Motor?

With a coupler? You don't provide concrete details of the encoder and motor, so its impossible to say more.

the Encoder is Bourns 1024 (Position) Pulse Absolute Mechanical Rotary Encoder with a 3.17 mm Plain Shaft (Not Indexed), Through Hole.

havent decided yet on what motor to be used so far

General question here: do motors that are typically used with encoders usually have the shaft sticking out both ends of the housing? If the gears and other drive mechanism are attached on one end, there would usually not be space for an encoder, and anyway you won't want the wires out among the gears and pulleys and chains etc.

So do they usually have the shaft on both sides, allowing simple attachment of an encoder on the end opposite the mechanics?

Follow-up: would it not be more usual to spec the motor first and either get one with a bulit-in encoder, or at least choose an encoder known to suit that motor?

jbanayo:
the Encoder is Bourns 1024 (Position) Pulse Absolute Mechanical Rotary Encoder with a 3.17 mm Plain Shaft (Not Indexed), Through Hole.

havent decided yet on what motor to be used so far

As asked nicely in the how to post threads, provide links to datasheets/product pages for all the relevant
hardware.