cr0wl:
I found optical/rotary encoder in old printer and I want to use it as encoder for steering wheel (Arduino Leonardo) but I don't know how to connect wires on encoder... there are no marks or anything how should I solder them.
Well, you would not expect instructions, would you? You solder them exactly as they were soldered in the printer - when you remove the module, you always take the connecting cables with it.
cr0wl:
encoder is from Epson printer (I think stylus NX110/NX115/SX110/SX115/TX110/TX111/TX112/TX113/TX115/TX117/TX119 something like that)
Since the internals of the printer are entirely proprietary, absolutely no-one here is going to know anything about particular models Epson printers. Few people are likely like myself, to keep old printers for disassembly. 
Here are your pictures. To post an image, you need to have the URL for the image, not a Web page.


Frankly, not very useful, out of focus. The best way to take photographs unless your workshop is lit by multiple floodlamps, is to take it outside in full daylight but not direct sun and use a digital camera (that is, not to be confused with a telephone) at least a metre away from directly above (or very slightly offset to ensure all the connections are able to be distinguished) using the (actual) zoom to just include all parts of the assembly. In your case, an oblique view would also be useful to understand how the encoder is assembled.
It looks as if the connections have been de-soldered. In this case, the answer to your "how to connect wires" is "the same way you disconnected them". 
I think there are four connections. That makes sense, two for power and two for quadrature data. The two soldered connections on one side of the encoder itself will be a LED and there will be a series resistor for it. You should be able to trace the connections for this to the main termination, probably the outer two. The Diode Test range on a multimeter should be able to identify the LED and positive and negative.
Assuming you can identify the series resistor indicating it is safe to apply a voltage, you put 5 V across the LED terminals and monitor the other two with your Arduino as you rotate the encoder. You may need to use a pinMode of INPUT_PULLUP.